Dear Stalist,
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
Will appreciate your suggestions.

Thanks,
Dapel