Bootstrap in Stata

bootstrap, reps (100): regress read female math write ses

*if number of reps are not specified, stata automatically does 50 reps
*by default stata bootstraps only the S.E in an OLS estimation command.


*Supposedly one wants to bootstrap the R square
bootstrap r2=e(r2), reps (100): regress read female math write ses

No comments:

Post a Comment