Stata Code:
program my2sls
regress son_yrs_schooling ib(first).age_cohort father_yrs_schooling ib(last).father_occupation Landholding_acre hh_size ib(first).sector ib(last).race_dummy ib(first).monthly_per_capita_income if son_age>=15 & son_age<=65
predict sonscl_hat, xb
mlogit son_occ_3 ib(first).age_cohort son_yrs_schooling_hat ib(last).fater_occupation Landholding_acre hh_size ib(first).sector ib(last).race_dummy ib(first).monthly_per_capita_income if son_age_1>=15 & son_age_1<=65, base(5)
end
bootstrap, reps(100): my2sls
But, I got this error:
"insufficient observations to compute bootstrap standard errors
no results will be saved"
1) I want to get out of this error
2) I am calculating the average predicted probability of the variables of equation II (mlogit) by typing command "eststo margin: margins (age_cohort), post", how can I get bootstrapped CIs for such estimations.
Related Posts with Two stage Program: First stage is OLS and second is mlogit, error in calculating bootstrap standard errors
Missing Standard Errors when vce(r) specified in xtreg, feDear All, Before I added 'vce(r)' option at the end of my xtreg, fe model I got standard error in th…
cumulative counts?Dear All, I was asked the following question. The data set is Code: * Example generated by -dataex…
DestringHi I run into a problem using destring. The problem is as follows: insheet Year Country Log_GDP Lo…
ivreg2 command for woolridge version of LPHi, Can you please let me know the ivreg2 command for estimating productivity using Woolridge versio…
Counting observations of nearest neighboursDear forum members, my data is a panel structured as follows: id change nid1 nid2 nid3 nid4 nid5 Fo…
Subscribe to:
Post Comments (Atom)
0 Response to Two stage Program: First stage is OLS and second is mlogit, error in calculating bootstrap standard errors
Post a Comment