100 Quick Stata Tips

Tags: Stata

Becomes a Stata Pro! One hundred and twenty, no-nonsense, professional-grade tips to raise your Stata skills.

Last updated 2022-01-10 | 4.5

- Fast
- and to the point
- useful tricks to use in Stata
- Data management
- Programming

What you'll learn

Fast
and to the point
useful tricks to use in Stata
Data management
Programming
Graphics
Statistics
Professional level tips
Advanced Stata

* Requirements

* Basic knowledge of Stata
* Basic knowledge of Stata code
* Basic statistics

Description

Make sure to check out my twitter feed for promo codes and other updates (easystats3)

If you want to learn more about Stata but don't have a lot of time, this is the course for you!

In this course I provide 120 fast and to-the-point tips for Stata. These tips are professional grade and aimed at helping you become a Stata master! They cover a wide range of issues in data management, graphing, statistics and programming.

Each video is designed to be stand-alone and will take no more than 2 minutes.

Learn years worth of hard Stata knowledge in 3 hours!

You should have basic knowledge of Stata and do-files. If you do not have this check out my "Essential Guide to Stata".

The following themes are covered:

Data Management

  • How to create a code book

  • How to create a label book

  • How to list only variable names

  • How to describe unopened data

  • How to search in variables

  • How to drop/keep variables sequentially

  • How to check a digital data signature

  • How to verify data

  • How to compare two datasets

  • How to compare variables

  • How to use tabulate to generate dummy variables

  • How to avoid many logical OR operators

  • How to number labels

  • How to use labels in expressions

  • How to attach one value label to many variables

  • How to store single values

  • How to use Stata's hand-calculator

  • How to use text with Stata's hand-calculator

  • How to select column of data in a do-file

  • How to rectangularize data

  • How to check if variables uniquely identify observations

  • How to drop duplicate observations

  • How to draw a sample

  • How to transpose a dataset

  • How to quickly expand and interact many variables

  • How to create publication quality tables in word

  • How to create publication quality tables in excel

  • How to export regression results

  • How to delete files from within Stata

  • How to display directory content

  • How to clone a variable

  • How to re-order variables

Statistics

  • How to create many one-way tables quickly

  • How to create many two-way tables quickly

  • How to sort and plot one-way tables

  • How to expand data instead of using weights

  • How to contract data to frequencies and percentages

  • How to compute immediate statistics without loading data

  • How to compute elasticities

  • How to set the default confidence level

  • How to show base levels of factor variables

  • How to estimate a constrained linear regression

  • How to bootstrap any regression

  • How to interpolate missing values

  • How to compute row statistics

  • How to compute standardized coefficients after linear regression

  • How to compute faster marginal effects

  • How to reduce collinearity in polynomial variables

  • How to use contrasting margins

  • How to use pairwise comparison with margins

  • How to define the constant in a regression

  • How to visualise complex polynomial models

  • How to identify outliers from a regression

Programming

  • How to hide unwanted output

  • How to force show wanted output

  • How to hide a graph

  • How to suppress error messages

  • How to force do-files to run to the end

  • How to execute programmes outside Stata

  • How to check memory usage

  • How to reduce files sizes

  • How timestamp commands

  • How to set a stopwatch

  • How to pause Stata

  • How to debug error messages

  • How to pause for large output

  • How to add custom ado folders

  • How to create a custom user profile

  • How to add comments to do-files

  • How to loop over non-integer values

  • How to monitor a loop

  • How to show more in the results window

  • How to display coefficient legends

  • How to squish a table

  • How to use and modify the Function keys

  • How to view command sourcecode

  • How to create custom correlations

  • How to insert current time & date into log files

  • How to save interactive commands

  • How to launch the interactive dialog box

Graphing

  • How to recover data from a graph

  • How to generate a combined graph with one legend

  • How to display RGB colors in graphs

  • How to make colors opaque

  • Why are SVG graphs useful?

  • How to apply log scaling to a graph

  • How to reverse and switch off axes

  • How to have multiple axes on a graph

  • How to display ASCII characters in graphs

  • How to graph the variance-covariance matrix

  • How to quickly plot estimated results

  • How to randomly displace markers

  • How to range plot

  • How to download word frequencies from a webpage

  • How to create a violin plot

  • How to show the Stata color palette

  • How to create custom titles

  • How to customize the look of graphs

  • How to show a correlation matrix as graphical table

  • How to plot a histogram with a boxplot

  • How to draw histograms with custom bins

  • How to graph a one/two/three-way table

  • How to recover graph code

  • How to do polar smoothing

  • How to separate scatter

  • How to range a graph

  • How to foreground/background plot

  • How to plotstyle

  • How to show multiple axes

Who this course is for:

  • Those working with Stata
  • Those wanting to skill-up in Stata
  • Those looking to become Stata professionals

Course content

6 sections • 121 lectures

How to create a code book Preview 01:00

How to create a label book Preview 01:09

How to list only variable names Preview 01:08

How to describe unopened data Preview 01:04

How to search in variables Preview 01:03

How to drop/keep variables sequentially Preview 01:02

How to check a digital data signature Preview 01:11

How to verify data Preview 01:58

How to compare two datasets Preview 01:17

How to compare variables Preview 01:00

How to use tabulate to generate dummy variables Preview 01:05

How to avoid many logical OR operators Preview 01:14

How to number labels Preview 01:13

How to use labels in expressions Preview 01:12

How to attach one value label to many variables Preview 01:18

How to store single values Preview 01:17

How to use Stata's hand-calculator Preview 00:57

How to use text with Stata's hand-calculator Preview 01:24

How to select column of data in a do-file Preview 00:56

How to rectangularize data Preview 01:27

How to check if variables uniquely identify observations Preview 01:18

How to drop duplicate observations Preview 01:07

How to draw a sample Preview 01:23

How to transpose a dataset Preview 00:54

How to quickly expand and interact many variables Preview 01:24

How to create publication quality tables in word Preview 01:10

How to create publication quality tables in excel Preview 01:29

How to export regression results Preview 01:13

How to create and use long strings Preview 02:13

How to use emojis Preview 02:13

How to quickly create new groups Preview 02:01

How to delete files from within Stata Preview 01:14

How to display file directory content Preview 01:10

How to clone a variable Preview 01:42

How to re-order variables Preview 01:30

How to create many one-way tables quickly Preview 00:47

How to create many two-way tables quickly Preview 01:25

How to sort and plot one-way tables Preview 01:09

How to expand data instead of using weights Preview 01:29

How to contract data to frequencies and percentages Preview 01:14

How to compute immediate statistics without loading data Preview 01:55

How to compute elasticities Preview 01:19

How to set the default confidence level Preview 01:21

How to show base levels of factor variables Preview 01:31

How to estimate a constrained linear regression Preview 01:34

How to bootstrap any regression Preview 01:30

How to interpolate missing values Preview 01:24

How to compute row statistics Preview 01:21

How to compute standardized coefficients after linear regression Preview 01:19

How to compute faster marginal effects Preview 01:48

How to reduce collinearity in polynomial variables Preview 01:12

How to use contrasting margins Preview 01:32

How to use pairwise comparison with margins Preview 01:47

How to define the constant in a regression Preview 01:35

How to visualise complex polynomial models Preview 01:13

How to identify outliers from a regression Preview 01:35

How to predict within and outside a regression sample Preview 01:45

How to hide unwanted output Preview 01:07

How to force show wanted output Preview 01:16

How to hide a graph Preview 01:26

How to suppress error messages Preview 01:25

How to force do-files to run to the end Preview 00:56

How to execute programmes outside Stata Preview 01:21

How to check memory usage Preview 01:04

How to reduce files sizes Preview 00:51

How timestamp commands Preview 00:48

How to set a stopwatch Preview 01:08

How to pause Stata Preview 00:58

How to debug error messages Preview 01:31

How to pause for large output Preview 01:06

How to add custom ado folders Preview 01:22

How to create a custom user profile Preview 01:16

How to add comments to do-files Preview 02:42

How to loop over non-integer values Preview 00:54

How to monitor a loop Preview 01:08

How to show more in the results window Preview 00:46

How to display coefficient legends Preview 01:06

How to squish a table Preview 00:59

How to use and modify the Function keys Preview 01:41

How to view sourcecode Preview 01:11

How to create custom correlations Preview 02:27

How to insert current time & date into log files Preview 01:47

How to save interactive commands Preview 01:37

How to create custom number lists Preview 02:15

How to change between lower and upper cases variable names and data Preview 01:42

How to change between lower and upper case text in do-files Preview 01:08

How to explicit subscript Preview 03:04

How to launch the interactive dialog box Preview 01:37

How to recover data from a graph Preview 01:29

How to generate a combined graph with one legend Preview 01:38

How to display RGB colors in graphs Preview 02:08

How to make colors opaque Preview 01:36

Why are SVG graphs useful? Preview 01:18

How to apply log scaling to a graph Preview 01:39

How to reverse and switch off axes Preview 01:24

How to have multiple axes on a graph Preview 01:41

How to display ASCII characters in graphs Preview 01:28

How to graph the variance-covariance matrix Preview 01:45

How to quickly plot estimated results Preview 01:36

How to randomly displace markers Preview 01:56

How to download word frequencies from a webpage Preview 01:50

How to range plot Preview 01:45

How to create a violin plot Preview 01:22

How to show the Stata color palette Preview 01:45

How to create custom titles Preview 01:25

How to customize the look of graphs Preview 02:02

How to show a correlation matrix as graphical table Preview 01:21

How to plot a histogram with a boxplot Preview 01:12

How to draw histograms with custom bins Preview 01:47

How to graph a one/two/three-way table Preview 01:54

How to recover graph code Preview 01:12

How to do polar smoothing Preview 01:44

How to visualise ladders of power Preview 02:01

How to combine combined graphs Preview 02:33

How to separate scatter Preview 01:47

How to range a graph Preview 02:23

How to foreground/background plot Preview 01:55

How to plotstyle Preview 02:58

How to show multiple axes Preview 02:33