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
Plotting prediction with confidence intervalsHi Statalisters, A bit rusty with my plotting, I cannot find how to solve a simple problem. I tried…
Mediation analysis for panel data with individual fixed effects (xtdpdml & gsem?)Dear all, I am working on strictly balanced panel data to evaluate individuals' activities on their…
Inconsistent estimation sample levels using eydxHi everybody I am encountering a strange problem. I am using - margins, eydx - but it is not workin…
Importing*.sav files from sub-directories using loop.Hi, I am trying to import .sav files from all sub-directories using the following, but nothing is ha…
How to loop variables' labels in stata Hello, I am using Stata 16.0, I have a dataset with many variables concerning election results. I h…
Subscribe to:
Post Comments (Atom)
0 Response to Running Bootstrap program to Implement Control Function Approach
Post a Comment