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
Stata package for LCA and SEM modelsDears, Can anyone please give me a solution for running the LCA and SEM models in stata. Is there a…
What code will match longitude and latitudesI hope there is someone that will be able to help me. I have been looking at previous FAQ on Statali…
Exporting weighted cross tabulation from stata to excelHello, I'm looking to export a weighted cross tabulation from stata to excel. The variables I am ta…
Too many variables specified error with keep and browse commandI have created a large local (called stubs) of variable stubs with wild cards e.g. "var1_* var2_* va…
Significance between Kaplan Meier and a line - is it possible?How can I check for significance between Kaplan Meier and a line when using addplot? Obviously, Log …
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