Back to Browse

Stata collapse observations

2.5K views
Dec 22, 2017
8:05

Learn how to collapse observations to generate means and standard deviations. The following code will come in handy for this tutorial: set obs 144000 set seed 1201 drawnorm eur, means(1.05) sds(0.10) gen min = _n seq day, f(1) t(100) b(1440) collapse (mean) mean=eur (sd) sd=eur, by(day)

Download

1 formats

Video Formats

360pmp410.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Stata collapse observations | NatokHD