outreg2

Aggregate Data by Group using Collapse command in Stata

The collapse command in Stata is used to aggregate a dataset by collapsing it based on some summary statistics of a variable like mean, sum, median, percentile, standard error etc. To understand how a variable can be aggregated, let’s start by loading Stata’s built-in NLSW (1988) dataset. sysuse nlsw88, clear We will also drop some …

Aggregate Data by Group using Collapse command in Stata Read More »

Nested Regression OR Hierarchical Regression in Stata

This article will go over how nested or hierarchical regressions are used in Stata. In many published academic papers, we see a single table representing results from various regression models run by the authors. Often, each subsequent regression adds one new variable to the list of covariates that an outcome variable is being regressed on. …

Nested Regression OR Hierarchical Regression in Stata Read More »

Reporting Results For Panel Regression Using Outreg2

In our two-part article (Part1 , Part2) on the outreg2 command, we learnt how regression results from Stata can be output to other file formats like Word, Excel, and LaTeX. In this article, we delve into reporting results for panel regression models, specifically four regression models: OLS (fixed and random effects, Generalized Method of Moments …

Reporting Results For Panel Regression Using Outreg2 Read More »