Stata Tutorials

Import and Export Data in Stata

Import and Export an Excel File in Stata

Results output to MS Word or Excel

Using Putexcel to Export Stata results into Excel (Command Menu)

Export Stata output to Excel using Putexcel (Code)

Putdocx command to Export Stata Results to MS Word

Publication Style Regression Output in Stata– Part 1

Reporting Publication Style Regression Output in Stata – Part 2

Reporting Results for Panel Regression Using Outreg2

Output Regression Analysis in Stata Using asdoc Command

Publication Style Correlation Table in Stata

Reporting Summary Statistics in Stata Using Outreg2

Export Summary Statistics, T-Tests, and Tabulations from Stata Using Estout

Descriptive Statistics

Descriptive Statistics in Stata and tab command

Using different types of t-test in state

Correlation Analysis in Stata (Pearson, Spearman, Listwise, Casewise, Pairwise)

How to Perform the ANOVA Test in Stata

Standardized Variable, normalization and Mean Centering in Stata

How to Identify and Treat Outliers in Stata

How To Check Normality of a Variable In Stata

Regression Analysis

Regression Assumptions in Stata for Beginners

Estimate Multiple Regression In Stata

Nested Regression OR Hierarchical Regression in Stata

Margins and Margins Plot in Stata

Stata and Finance

How to Calculate Stock Return in Stata

Stock Return on Stata (ascol user written command)

How to Estimate Weekly, Monthly, Yearly Betas in Stata

Rolling Beta and rolling mean, median in Stata

Estimate Rolling Regression or Rolling Beta in Stata

How to Calculate Systematic and Unsystematic Risk in STATA

Create a Portfolio and Calculate Portfolio Return in Stata

Categorical Independent Variable Regression

Categorical Variable Regression in Stata Part1

Categorical Variable Regression in Stata Part2

Two-way interaction and its interpretation in Stata Part3

Three-Way Interaction in Stata

Problems with Regressions Involving Categorical Variables

Categorical Dependent Variable

How to work with Dummy Dependent Variable in Stata

Panel Data Analysis

Theory of Panel Data Analysis For Beginners (Part 1)

Panel Data Analysis In Stata (Part 2)

Panel Data With Fixed Effects (Time, year, country fixed effect)

Theory of Within, First Difference, and Between Estimation

Within, First Difference and Between Estimation in Stata

Event Study

The Basics of Event Study

Estudy Command for Event Study in Stata

Event Study using the Eventstudy2 command in Stata


Introduction to Stata Interface

Stata Command Syntax: How To Write Commands in Stata

Various Data Types of Stata

Creating Log File in Stata

How to Add Comments in Stata Do File

How to use Stata Do file? Tips and Tricks

Preserve and Restore Data in Stata

Local and Global Macros in Stata

How to use Scalar and Matrix in Stata

Extract Results From Analysis | E-Class and R-Class Commands

How to count the number of observations in STATA

Unique Identifiers for Panel Data

Data Management

Cleaning, Extraction and Modifying String Variables

How to count the number of observations in STATA

Drop Variables and Drop Observations Based on Conditions in Stata

Rounding off Decimal Numbers in Stata

How to Compare two Data Sets in Stata?

Combining Multiple Conditions in Stata

Stata Dummy Variable Guide

Use of System Variables, difference between _n and _N in Stata

Use of Compare command in Stata to compare variables

How to Unzip Files in Stata

Lag, Lead values, and Differences of a Variable

How to Convert String variable into numeric in Stata

Using Rename command to rename Variable in Stata

How to Create and use Business Calendar in Stata

Filling Gaps in Time series or Panel Data in Stata

Using the Encode Command In Stata to Convert String Variable

Using Dates in Stata | Quick Tips to work with Dates in Stata

Aggregate Data by Group using Collapse command in Stata

Using Sort command in Stata

Stata Command Modifiers if, in, by, bysort Qualifiers and Statements in Stata

Continue Do file After Error | Capture Command in Stata

Using loop in Stata

Nested Loop in Stata

Data Frames in Stata | Store Multiple Datasets in Stata’s Memory

Enter Questionnaire Data in Stata | Survey Data in Stata

How to Reshape Data from Long to Wide form in Stata

How to merge data in Stata | Combining datasets in Stata

How to Merge Data in Stata Using Code

How to Append (Stack) Data in Stata

How to Combine Multiple CSV/Excel Files in Stata

How to Combine Categorical Variables in Stata

Order Variables in Stata

Missing values Treatment in Stata

Copy file from one folder to another using Stata

Create or Delete a Folder and Delete a file in Stata

Changing Working Directory in Stata

How to Replicate or Clone a Variable



Scatter plots in Stata

Combine multiple graphs in Stata

How To Make Heatplot In Stata | Correlation Heat Plot

Box Plot in Stata

How to Create A Histogram in Stata

Other Topics

How to Find Nearest Location in Stata Using geonear

How to Calculate the Distance Between Two Locations in Stata Using geodist