Hello,
I am trying to implement Wooldridge's control function approach and bootstrap both the first and second stage's using a program and I could use some help regarding the code. Thus far i have:
capture program drop boot
program boot, rclass
regress endogvar instrument controls
predict resid_cf, resid
regress dv controls endogvar endogvar*x1 endogvar*x2 resid_cf
end
bootstrap, reps(100) : boot
However, it returns:
Bootstrap replications (100)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 50
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 100
insufficient observations to compute bootstrap standard errors
no results will be saved
Could someone please advise?
Thank you in advance!
Related Posts with Running Bootstrap program to Implement Control Function Approach
Smaller and low quality graphs in Stata 17Dear community, I'm using Stata 17 SE and getting smaller and low-quality graphs than in previous v…
How to analyze data for reapeated measure mixed model design? Research objectives: 1. What is the association between tourists' and residents' aesthetic experien…
Help in creating so many dummiesHi I have a data set of 94 countries and number of observations for each country is different. The…
Roc curveHi everyone, I have made a ROC curve to test the predictive power of the credit rating in estimating…
Margins "variable not found in list of covariates" logistic regressionHi there, I'm having an issue whereby I am trying to run a margins command following my logit regre…
Subscribe to:
Post Comments (Atom)
0 Response to Running Bootstrap program to Implement Control Function Approach
Post a Comment