STATA

Descriptive Statistics in Stata and tab command

Descriptive statistics in stata is used when we need to learn about details of observations of variables in data, their frequencies, mean, median and variability to analyze data. The summary statistics or descriptive statistics of categorical variables can be generated in Stata quickly, making it easy to analyze data. Generally, while working with categorical variables, […]

Descriptive Statistics in Stata and tab command Read More »

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. Download Example File sysuse nlsw88, clear We will

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