I want to run and repeat this command line 100 times and then after the repetition, take the average of
y1
Code:
expand 2 bsample 3892 rename eh1 yhat1 save eh1, replace use SP_lb,clear keep if inrange(age, 26,51) & year==2010 merge 1:1 _n using "eh1.dta" gen y1= bh1x2 + ehat
Thanks,
Dapel
0 Response to Forval simulation, 100 times
Post a Comment