The Essential Guide To Stata

Tags: Stata

The comprehensive guide to Stata! Continuously updated.

Last updated 2022-01-10 | 4.4

- An essential introduction to Stata
- Data manipulation in Stata
- Data visualisation in Stata

What you'll learn

An essential introduction to Stata
Data manipulation in Stata
Data visualisation in Stata
Data analysis in Stata
Regression modelling in Stata
Simulation in Stata
Count data modelling
Categorical data modelling
Survival analysis
Panel Data Analysis
Epidemiology
Instrumental Variables
Power Analysis
Difference-in-Differences

* Requirements

* There are no requirements

Description

  • An essential introduction to Stata
  • Data manipulation in Stata
  • Data visualisation in Stata
  • Data analysis in Stata
  • Regression modelling in Stata
  • Simulation in Stata
  • Count data modelling
  • Categorical data modelling
  • Survival analysis
  • Panel Data Analysis
  • Epidemiology
  • Instrumental Variables
  • Power Analysis
  • Difference-in-Differences

Course content

19 sections • 103 lectures

The Stata Interface Preview 07:40

Learn about the basic Stata interface. What does each window do and how do you interact with them?

Using Help in Stata Preview 05:23

If there's ONE thing you need to know how to use it's how to use help. Once you can use help you can "help" yourself. Learn about the different ways you can find help inside and outside Stata.

Command Syntax Preview 04:10

This course is taught via the command syntax (code). Professionals do not use 'point-and-click' to do their work but write all their analysis in code. Learn about the basic Stata syntax and how it works.

.do and .ado Files Preview 07:37

Stata is modular and uses something called .do and .ado files to operate. Learn how these are related to Stata code and how you can interact with them.

Log Files Preview 05:11

Log files save all your work to a continuously updated log file. This keeps a record of your results and code in case something goes wrong. Learn how to start, end and view a log file in Stata.

Importing Data Preview 09:11

Not all data comes in Stata's .dta format. Learn how to import other data types in Stata such as excel spreadsheets.

Viewing Raw Data Preview 04:21

Unlikes Excel, Stata does not display the underlying raw data by default. Learn how to access and view the raw data and how to modify it.

Describing and Summarizing Preview 07:33

Basic data analysis often requires summary statistics such as means, standard deviation and min/max values. Learn how to get a overview of your data and produce basic summary statistics.

Tabulating and Tables Preview 08:42

Not all data is suited for means and standard deviation analysis. Some data requires tabulation or tables. Learn more about how to tabulate data and how to create custom tables in Stata.

Missing Values Preview 07:41

Not all data is 100% perfect. Sometimes there are missing values. Learn how Stata handles missing values and how to detect missing data.

Numerical Distributional Analysis Preview 06:00

Analysing distributions is an important part of statistical analysis. Learn what commands are available to analyse data distributions numerical in Stata.

Using Weights Preview 05:09

Survey data often contains weights that give some observations more or less significance. Learn how to use weights in statistical analysis in Stata.

Recoding an Existing Variable Preview 04:53

Learn how to recode an existing variables with the recode command. This command is fast and easy to use and allows you to recode numerical values quickly.

Creating New Variables, Replacing Old Variables Preview 06:39

A limitation of the recode command is that is has trouble using "if" conditions in data manipulation. Learn how to use the generate and replace command to generate new and replace existing variable using "if" conditions.

Naming and Labelling Variables Preview 07:31

New data often requires renaming and labelling to avoid confusion. Learn how to attach labels and rename variables.

Extensions to Generate Preview 04:58

If you are looking for a very complex data manipulation then the EGEN command may help. This command offers more complex extensions to generate and allows you to perform complex data manipulations.

Indicator Variables Preview 06:58

Indicator/Categorical data is an important data type. Learn how to construct and recode categorical variables.

Keep and Drop Data/Variables Preview 02:58

Not all data needs to be retained. Learn how to remove (or keep) selected observations and variables in your data.

Saving Data Preview 04:05

Learn how to set the file path and save your data in Stata. Learn how to export your data in other formats.

Converting String Data Preview 07:15

String data (data that contains non-numeric characters) can be challenging to deal with. Get a quick introduction on how you can format such data to be useable in data analysis.

Combining Data Preview 06:35

Some datasets are split into multiple files. Learn how to merge and append different datasets together to create larger and more complex datasets.

Using Macro's and Loop's Effectively Preview 09:33

Advanced users use custom macro's to speed up their workflow. Get an introduction to macro's and learn the basics of looping code over your data.

Accessing Stored Information Preview 06:41

Multiple Loops Preview 04:26

Date Variables Preview 08:24

Subscripting over Groups Preview 11:03

Graphing in Stata Preview 06:29

Learn the basics of graphing in Stata. How to load, save and use graphs and how to change their colour scheme.

Bar Graphs and Dot Charts Preview 07:48

Bar charts and dot charts are useful to plot summary statistics over categorical data. Learn how to create bar and dot charts in Stata and what options are most relevant.

Graphing Distributions Preview 09:13

Examining distributions visually is an important part of data analysis. Learn how to use histograms and kernel density plots in Stata.

Pie Charts Preview 06:20

Pie charts are used to display numerical proportions. Learn how to create and customise pie charts in Stata.

Scatterplots and Lines of Best Fit Preview 09:22

Scatterplots allow users to analysis bivariate relationships. Learn how to create scatterplots and overlay lines of best fit to analyse relationships between two variables visually.

Graphing Custom Functions Preview 05:29

Remember that old graphical calculator you used in school that could could create custom functions? Learn how to draw custom functions (e.g. y = 2x^2) in Stata. Learn how this might be useful in a regression scenario.

Contour Plots (and Interaction Effects) Preview 09:04

Contour plots allow 3-dimensional visualisation in 2-dimensions via contours. Learn how to use and apply contour plots to Statistical analysis in Stata. These can be useful to visualise complicated interaction effects.

Jitter Data in Scatterplots Preview 05:55

Sometimes you need to fake a scatterplot, but retain the original structure. Learn how to use jitter to randomly distribute actual datapoint and why this might be useful

Sunflower Plots Preview 07:45

Combining Graphs Preview 07:35

Learn how to combine multiple graphs into one graph. This can be a powerful way to increase the visual effectiveness of your work. Learn what options you need to know about when combining graphs in Stata.

Changing Graph Sizes Preview 04:37

Graphing by Groups Preview 06:27

Changing Graph Colours Preview 07:24

Adding Text to Graphs Preview 08:16

Scatterplots with Categories Preview 10:44

Association Between Two Categorical Variables Preview 06:07

Learn how to test the association (relationship) between two categorical variables in Stata using the tabulate command.

Testing Means Preview 06:38

Learn how to perform basic means test across two variables. Is the mean of one variable really different to the mean of another variables? Learn how to perform group mean tests.

Bivariate Correlation Preview 06:46

Learn how to perform bivariate correlation (Pearson's correlation) on two more variables.

Analysis of Variance (ANOVA) Preview 06:14

A short introduction to basic ANOVA analysis in Stata.

Ordinary Least Squares (OLS) Regression Preview 06:39

A brief introduction and example of basic OLS regression in Stata.

Factor Variables in OLS Regression Preview 07:30

Learn how to integrate categorical variables into your regression analysis in Stata.

Diagnostic Statistics for OLS Regression Preview 16:14

Learn how to perform common diagnostic analysis and tests after a regression in Stata.

Log Dependent Variables and Interaction Effects in OLS Regression Preview 08:21

Learn how to run and interpret a log transformed regression. Learn how to use interaction terms in a regression.

Hypothesis Testing in OLS Regression Preview 05:16

Learn how to use the test command to perform hypothesis testing after a regression.

Presenting Estimates from OLS Regression Preview 07:55

Learn how to output the results from a regression to other programmes such as Word or Excel and how to make your results look professional.

Standardizing Regression Estimates Preview 05:24

Graphing Regression Estimates Preview 10:20

Oaxaca Decomposition Analysis Preview 15:53

Mixed Models: Random Intercepts and Random Coefficients Preview 18:57

Constrained Linear Regression Preview 07:37

Binary Choice Models (Logit/Probit Regression) Preview 07:27

When a dependent variable is binary it requires a logit/probit regression model for analysis. Learn how to apply such models in Stata.

Diagnostics and Interpretation of Logit and Probit Regression Preview 10:33

Learn basic diagnostic tools after a login/probit regression model including goodness-of-fit statistics.

Ordered and Multinomial Choice Models Preview 12:52

Ranked or unranked categorical dependent variables require more complex non-linear models. Learn the basics of the ordered logit and multinomial legit regression models in Stata.

Fractional Logit, Beta Regression and Zero-inflated Beta Regression Preview 14:35

Random Numbers Preview 06:44

Learn about simulation and how to create basic random numbers in Stata.

Data Generating Process Preview 06:17

Learn how we can use random variables to create fake data with known properties.

Simulating a Violation of Statistical Assumptions Preview 05:52

Learn how we can test the assumptions of a regression estimator with fake data that has properties that do not match the requirements of the estimator. What happens when our data misbehaves?

Monte Carlo Simulation Preview 05:22

Learn about Monte Carlo Simulation and how professionals test the statistical properties of estimation procedures.

Features of Count Data Preview 07:46

Poisson Regression Preview 09:28

Negative Binomial Regression Preview 07:59

Truncated and Censored Count Regression Preview 08:02

Hurdle Count Regression Preview 08:44

What is Survival Analysis? Preview 06:00

Setting up Survival Data Preview 08:35

Descriptive Statistics in Survival Data Preview 08:08

Non-parametric Survival Analysis Preview 08:30

Cox Proportional Hazard's Model Preview 07:24

Diagnostics for Cox Models Preview 05:23

Parametric Survival Analysis Preview 07:39

Setting up Panel Data Preview 08:55

Panel Data Descriptives Preview 09:03

Lags and Leads Preview 10:47

Linear Panel Estimators Preview 12:33

The Hausman Test Preview 05:26

Non-Linear Panel Estimators Preview 08:52

Difference-in-Differences Estimation Preview 13:04

Parallel Trend Assumption Preview 14:53

Difference-in-Differences without Parallel Trends Preview 18:18

Instrumental Variable Regression Preview 20:21

Multiple Endogenous Variables Preview 12:17

Non-linear Instrumental Variable Regression Preview 14:39

Heckman Selection Models Preview 11:32

Introduction and Rate Data Preview 12:12

Cumulative Incidence Data Preview 08:03

Case-Control Data Preview 07:16

Case-Control Data with Multiple Exposure Preview 06:08

Matched Case-Control Data Preview 06:59

Power Analysis: Sample Size Preview 14:55

Power Analysis: Power and Effect Size Preview 08:05

Power Analysis: Simple Regression Preview 08:09

Matrix Operations Preview 10:59

Matrix Functions Preview 06:06

Matrix Subscripting Preview 06:04

Matrix Operations with Data Preview 08:39