Hi all,
I am trying to bootstrap the standard errors after using the control function method. In the second stage, I use a logit model with country fixed effects. However, when I try bootstrapping using the following method, I get an error:
cap program drop cfu
program cfu
xtreg x z x2 i.year, fe robust
predict vhat, resid
logit dummy x x2 vhat country*, robust
drop vhat
end
bootstrap, reps(400): cfu
no observations
an error occurred when bootstrap executed cfu
r(2000);
I assume that it might be because of country fixed effects (country*). Could someone please help me adjust the program so that the fixed effects from the second stage work through the bootstrapping?
I am trying to bootstrap the standard errors after using the control function method. In the second stage, I use a logit model with country fixed effects. However, when I try bootstrapping using the following method, I get an error:
cap program drop cfu
program cfu
xtreg x z x2 i.year, fe robust
predict vhat, resid
logit dummy x x2 vhat country*, robust
drop vhat
end
bootstrap, reps(400): cfu
no observations
an error occurred when bootstrap executed cfu
r(2000);
I assume that it might be because of country fixed effects (country*). Could someone please help me adjust the program so that the fixed effects from the second stage work through the bootstrapping?
Comment