
Learn how to manage, manipulate, and analyze data with Stata, covering basics to advanced data visualization across its three sub courses: Essentials, tips for data, and data visualization in Stata.
Explore the Stata interface across Mac and PC, navigate the main window with results, command, and variable panes, and customize preferences for specialized editors.
Learn to navigate Stata's help features, including the help command, help viewer, the manual and PDFs, getting started guides, and online resources like the Stata Journal.
Explore Stata command syntax as the primary way to interact with data beyond the gui, mastering command arguments, optional brackets, and options to control analysis.
Learn how do files store Stata code, how do edit and the do command execute code, and how ado files enable modular, reusable data analysis in Stata.
Start, view, and manage Stata log files to record data sessions, using log for starting, closing, appending, or replacing, and translate logs for text editors.
Master loading and importing data in Stata with clear, use, system use (cissus), input, and import, including Excel imports with first row as variable names and sheet options.
Learn to view and edit raw data in Stata using the browse and edit commands, filter with if and in, and insert a new variable.
Explore basic descriptive statistics in Stata using describe and summarize to understand observations, variables, and data features, then learn how the codebook command generates a data codebook.
Learn to use the tabulate command in Stata to create one-way tables for categorical data. Explore two-way tables and summarize options, including missing values, no label, and row column percentages.
Explore distributional statistics of continuous variables like price, using inspect, stem, and summarize detail, then test for normality with the src test in Stata.
Explore how to apply Stata weights to survey data, including frequency, sampling, analytical, and importance weights, and see their impact on descriptive, regression, and graph analyses.
Explore the redesigned Stata 17 table command, learn to build custom two-way and multi-variable tables, apply descriptive statistics, and export results to Excel, PDF, or Latex.
Learn to recode existing numerical variables in Stata using the recode command, merge sparse categories, and generate a new variable with rule-based mappings.
Generate new variables in Stata using the generate command and function transformations, such as price divided by weight and log price. Use replace to modify existing variables and verify summaries.
Rename single or grouped variables and set their labels using rename and label commands, and create value labels for categories. Explore the variable manager GUI and command-line options.
Explore egon, the extensions to generate in Stata, to create deciles with the cut function, compute standard deviation, and derive row means.
Learn to create indicator variables in Stata with generate, replace, or recode, including binary high price and multiple dummies from categorical data.
Learn to keep and drop data and variables in Stata using drop and keep commands, apply if conditions and wildcards, and work on a copy.
Learn to save and export data in Stata, using cd, save, and export commands, while guarding against overwriting by always working with a copy and using replace.
Convert string variables to numeric in Stata using the d string and the two string commands, then reverse with the same tools, and use encode and decode for non-numeric strings.
Learn to combine data sets in stata by appending and merging, using a merge key or id variable, and read the merge report and underscore_merge indicator for 1-to-1 merges.
Learn how to use macros and foreach loops in Stata to shorten code, manage local and global macros, and automate multiple commands like summaries and regressions across variables.
Access stored results from Stata commands, including R-class and E-class outputs, to automate calculations and customize output using display, return list, matrix list, and underscore variables.
Explore multiple loops in Stata, using for each and for values to generate new variables by multiplying auto data variables by I values; see how double loops save time.
Explore converting string dates to numeric in Stata, using the date function with mdy or ymd, extracting year, month, and day, and formatting for analysis.
Explore how underscore variables and by prefix enable group-based recoding in Stata, using subscripting to extract observations and calculate max or min values within each group.
Learn to create and customize Stata graphs with the graph command, overlay visuals with two way, save and reuse graphs, and apply schemes like economist scheme for publication-ready visuals.
Create bar graphs and dot charts in Stata, comparing category frequencies and summary statistics like price and standard deviation, with graphical user interface and do-file options.
Explore how to graph distributions in Stata, using histogram, kernel density plots, quantile plots, box plots, and glider to assess skewness and compare groups.
Explore pie charts to visualize categorical data with Stata, first via the graphical user interface, then by writing do-file code, including customization and group comparisons like domestic vs foreign.
Explore scatter plots and lines of best fit in Stata to visualize relationships, compare groups with two-way overlays, and assess linear, quadratic, and non-parametric fits with confidence intervals.
Learn how to graph custom functions in Stata using the two way function command to plot equations, distributions, and regression estimates over specified ranges.
Visualize three-dimensional data in two dimensions with contour plots in Stata, using a z variable to define contours and explore continuous by continuous interactions via margins.
Apply the jitter option to scatterplots to add random noise, revealing data distribution while protecting confidentiality. See how jitter clarifies crowded or binary data and enables visualization of sensitive relationships.
Learn how sunflower plots in Stata reveal data density in large bivariate datasets using sunflowers, hexagons, and petals, with bin width adjustments and optional two-way plots.
Learn to use sunflower plots in Stata to visualize density distributions of bivariate data with hexagons, petals, and color cues for high, medium, and low density.
Learn to adjust Stata graph sizes by using the aspect ratio option to reshape the plot region, plus y size, x size, and scale options to tune the whole graph.
Explore graphing by groups in Stata using the buy option to repeat graphs across subgroups, with suboptions like i scale, total, missing, row, column, and compact.
Apply graph color schemes and object-specific colors to Stata graphs, adjusting opacity, intensity, and rgb values for clear, print-friendly visuals.
Explore embedding custom markers and text in Stata graphs using starter code, with bold, italic, and Greek letters via Smiggle, and control titles, labels, and note text.
Learn to create scatter plots with categories in Stata by overlaying multiple y variables, using separate and collapse to generate summary data, and visualize by ethnicity.
Explore how two categorical variables relate using chi square and Fisher's exact tests in Stata, with tabulate, expected counts, p-values, and related measures.
This lecture demonstrates testing means in Stata, including one-sample and two-sample t tests, testing standard deviations and proportions, and using Hotelling's t-squared test and mean by plots to compare groups.
Explore Pearson's bivariate correlation in Stata using correlate and the pairwise command, with listwise and pairwise deletion, covariances, significance testing, and tetrachoric for binary variables.
Explore one-way and two-way analysis of variance in Stata, test mean differences, check equal variances, and use one way or anova commands with tabulate, reporting f statistics and p values.
Explore ordinary least squares regression in Stata using the regress command to model price with miles per gallon, weight, and length, and interpret coefficients, p-values, and R-squared.
Learn to include categorical variables in an OLS regression in Stata using the i. prefix to expand categories in real time, and set base or reference categories.
Explore diagnostic tools in Stata for OLS regression, including post estimation statistics, multicollinearity checks, outlier detection, functional form, heteroskedasticity tests, and visual diagnostics to improve model fit.
Explore how to improve regression models in Stata by transforming the dependent variable to log price, adding a quadratic miles per gallon term, and using margins plots to visualize interactions.
Learn to perform hypothesis tests after OLS regression in Stata, test single and joint coefficients, compare to nonzero values, use testparm, and compute linear combinations across lag variables.
Learn to present multiple OLS regression results in Stata by storing estimates with estimates store, compiling them into an estimates table, and exporting tidy tables to Word or Excel.
Standardized regression estimates reveal which variables matter most by rescaling variables to mean zero and unit variance. Practice in Stata uses beta and std beta, with cautions on interactions.
Visualize regression estimates in Stata by plotting coefficients with margins and coef plot, compare multiple models, store results, and highlight significance with a null effect line.
Explore Oaxaca decomposition analysis, a regression method that partitions wage gaps into explained and unexplained components. Note how education explains part of the gap, while the unexplained part suggests discrimination.
Explore linear mixed effects models with random intercepts and random slopes in Stata to improve fit over ordinary least squares, by estimating variance components and visualizing results.
Explore constrained linear regression, which presets some parameters and estimates the rest within defined constraints using the constraint command and CNS reg in Stata.
Compare nonlinear logit and probit models for binary outcomes in Stata, highlighting why linear probability models fail with out-of-bounds predictions and how maximum likelihood yields bounded probabilities.
Explore diagnostic statistics and interpretation of logit and probit regression, including goodness-of-fit measures, pseudo r-squared, classification tables, odds ratios, and marginal effects via margins.
Explore ordered and multinomial choice models in Stata, estimating ordered logit/probit with cut points, margins, and parallel regression checks, then apply multinomial logit with IEA tests and base categories.
Learn how to model fractional data bounded between 0 and 1 with beta regression, fractional logit/probit, and zero inflated beta regression in Stata, ensuring valid predictions.
Explore generating random numbers in Stata for Monte Carlo simulations, using a data generating process to control the environment, including normal and uniform draws with seeds.
Construct datasets from random generators to illustrate the data generating process, defining y as a function of x1, x2, and e1, and examine regressions and probit on binary outcomes.
Simulate data structures in Stata to examine what happens when data violate ordinary least squares assumptions through endogeneity and multicollinearity. Reveal bias, inefficiency, and higher standard errors in regression estimates.
Learn to perform Monte Carlo simulation in Stata by repeatedly generating random data, running regressions, and evaluating estimator bias through summaries and density plots.
Explore count data analysis and Poisson modeling in Stata, highlighting non-negative integers, equidispersion, zeros, and when to use Poisson or negative binomial regression instead of OLS.
Examine Poisson regression for count data and learn how to interpret coefficients, margins, and exposure in Stata. Assess equi dispersion and detect overdispersion before considering alternatives like negative binomial regression.
Explore the negative binomial regression for count data and how alpha handles overdispersion. Learn to run nb reg in Stata, predict counts, and interpret margins and goodness-of-fit.
Account for truncation and censoring in count data using truncated Poisson, truncated negative binomial, and censored Poisson models in Stata, with doctor visits as examples.
Explore hurdle and zero inflated count models for data with excess zeros, using logit for the zero step and truncated negative binomial regression for the count step in Stata.
[Updated with new Audio in 2025]
The Complete Guide to Stata
Are you ready to harness the full power of Stata for data analysis? Whether you’re a complete beginner or an experienced analyst looking to sharpen your skills, this course provides a thorough, hands-on introduction to Stata’s most useful features. You’ll learn to manipulate, explore, visualize, and model complex datasets—all while developing “good practice” habits that will help you code efficiently, interpret results correctly, and present your findings with confidence.
This course is split into three main sub-courses to guide your learning:
Stata Fundamentals – A step-by-step introduction to the essentials of Stata, from data loading and cleaning to basic descriptive statistics and graphing.
Stata Tips and Tricks – Explore 125 short, standalone tips to help you solve common challenges, speed up your workflow, and uncover hidden capabilities within Stata.
Advanced Data Visualization – Master a wide variety of visualization techniques, learning how (and when) to use each one effectively.
I'll consistently focus on practical application - rather than diving into lengthy statistical theory - and show you how to implement and interpret commonly used statistical methods with real-world data.
What You’ll Learn
Getting Started: Install and navigate Stata with ease.
Data Exploration and Management: Load, view, clean, and manipulate datasets for proper analysis.
Basic and Advanced Visualizations: Create histograms, box plots, scatter plots, violin plots, spike plots, line charts, and more—while understanding the pros and cons of each.
Statistical Analysis:
Correlation and ANOVA
Regression (including diagnostics and model building)
Hypothesis Testing
Binary Outcome Models (Logit/Probit)
Fractional Response Models
Categorical Choice Models (Ordered Logit/Multinomial Logit)
Simulation Techniques
Count Data Models (Poisson/Negative Binomial)
Survival Data Analysis (Parametric, Cox-Proportional Hazard, Parametric Survival Regression)
Panel Data Analysis (including Lags, Leads, Fixed/Random Effects, Hausman Tests)
Difference-in-Differences Analysis
Instrumental Variable Regression (Endogenous Variables, Sample Selection, Non-Linear Endogenous Models)
Epidemiological Tables: Cohort studies, case-control studies, and matched case-control studies.
Power Analysis: Determine sample size, power size, and effect size.
Matrix Operations: Operators, functions, and subscripting.
You’ll also get 125 “Tips and Tricks” to help you become a Stata power user, covering topics like data management, graphing, statistics, and programming. Each standalone tip takes just a couple of minutes to learn and immediately apply.
Finally, the Advanced Data Visualization portion of the course will guide you through a diverse range of graphing techniques—from histograms and rootograms to bubble plots and mosaic plots—giving you the skills to present data in clear, compelling ways.
Prerequisites and Target Audience
Prerequisites: No prior experience with Stata is required. Familiarity with basic quantitative concepts is helpful but not mandatory.
Who Should Enroll: Anyone who wants to enhance their data analytics skill set with professional Stata techniques, including students, researchers, data scientists, and analysts in business, academia, and the public sector.
Suggested Learning Paths
Depending on your goals, you may wish to focus on certain sections:
Basic Stata Fundamentals: Sections 2, 3, 4, 5, 6, 7, 8
Advanced Stata Concepts: Sections 8, 9, 10, 11, 12, 13, 14, 15, 16, 17
Quick Tips and Tricks: Sections 18, 19, 20, 21
Data Visualization: Sections 5, 21, 22, 23, 24, 25, 26
Data Management: Sections 3, 4, 18
Take this course to experience Stata at its finest; learn the coding, analytic, and visualization skills you need to excel in modern data analysis, and gain the confidence to tackle real-life projects with competence and clarity.