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
Creating multiple new variable columns from an existingi have a dataset example below id visit_number date value test 1 2 2020-10-01 16:00 140 sodium 79 3…
Change values without changing labelsHi, I have the following dataex for what I have a question about: Code: clear input int(H2PF1 H2PF…
Group-year FEs do not absorb the group-level treatmentHi Statalist, I'm running a DiD with a continuous treatment at the group (industry) level. The trea…
using bsample, cluster in conjunction with bootstrap (Stata 15)Hi, I'd been trying to set up a simple bootstrap that involves a small code that I'd written and I w…
Condense household observationsHi all, Apologies in advance, I'm an inexperienced undergrad. I have a dataset which has 1 househo…
Subscribe to:
Post Comments (Atom)
0 Response to Running Bootstrap program to Implement Control Function Approach
Post a Comment