D:SDATA with STATA
Research methods · Econometrics · Applied data analysis

Research Method to Data Analysis

A practical learning hub that connects the research question, the statistical model, and the STATA commands needed to carry out the analysis.

Search the command library below: try “import Excel”, “robust standard errors”, or “histogram”

Move from question to evidence.

Each pathway explains the reasoning first, then connects it to practical analysis.

Work through an analysis.

Move from model choice to applied code and then to a defensible interpretation of the results.

All commands

37 results

Begin every analysis with a clear trail.

A do-file records the choices behind your results. Set the working folder, start a log, load the data, and preserve the original dataset.

01 * Start a reproducible analysis
02 clear all
03 capture log close
04 cd "C:\\project\\analysis"
05 log using "results.log", replace text
06 sysuse auto, clear
07 * Your analysis begins here

Built for learning by doing.

Created by Dr. Nisha Malhotra, an economist and educator with more than two decades of university teaching and research experience. These resources were originally designed for Economics students at the University of British Columbia.

The redesigned site preserves the original teaching material while making the relationship between research design, econometric methods, and applied STATA work much easier to follow.

View the original UBC resource ↗
Command copied