This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: reg Y X; gen b0_estim=_coef[_cons]; gen b1_estim=_coef[X]; gen R2=e(r2); egen meanX=mean(X); egen meanY=mean(Y); gen nobs=_N; gen sample=`j'; summ; keep if _n==1; keep sample nobs b0* b1* meanX meanY R2; append using c:\Stata\OUTPUT1a; save c:\Stata\OUTPUT1a, replace; local j=`j'+1; clear; }; }; end; simul1; use c:\Stata\OUTPUT1a; drop abc; summ; gr7 b1_estim, xline(1) xlab(-1,0,1,2); clear;...
View Full Document
This note was uploaded on 09/04/2011 for the course ECON 140b taught by Professor Staff during the Winter '08 term at UCSB.
- Winter '08