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
Add stars to numbers based on p value recorded in a given variableDear list, I have two variables, A and B. I want to list A, and ask Stata to attach significance st…
How to replace per individualFor simplicity, assume I have a panel dataset with two firms with 10 years' revenue data (2001-2010)…
Two-way line graphsI hope someone can help me as I have spent countless hours trying to recreate the graph output in jo…
How to generate a alphabetic macro list using stata?Hi guys, A crucial step in my programming is to generate a alphabetic macro list to locate the tabl…
Use Collapse and Reshape to arrange the dataDear Statalisters, I have a cross section dataset which contains information on household level 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