Hi Statalist users,
I would be very grateful for advice on the following problem. I need estimate a 2SLS regression using the PCSE model (xtpcse). I understand that doing 2SLS "by hand" will produce incorrect standard errors, but cannot use xtivreg or xtivreg2because they do not support the panel corrected standard errors model. Based on my somewhat limited understanding, one possible fix is to bootstrap the standard errors. The basic procedure I followed (modified from a suggestion here: https://stats.stackexchange.com/ques...gression-stata) is:
Any suggestions as to how to resolve this issue would be highly appreciated. I am using Stata 13.1.
Very many thanks in advance.
I would be very grateful for advice on the following problem. I need estimate a 2SLS regression using the PCSE model (xtpcse). I understand that doing 2SLS "by hand" will produce incorrect standard errors, but cannot use xtivreg or xtivreg2because they do not support the panel corrected standard errors model. Based on my somewhat limited understanding, one possible fix is to bootstrap the standard errors. The basic procedure I followed (modified from a suggestion here: https://stats.stackexchange.com/ques...gression-stata) is:
program my2slsHowever, I received the error message:
xtset country year
//first stage regression
xtpcse x1 z x2 x3 x4
predict x1_hat, xb
//second stage regression
xtpcse y x1_hat x2 x3 x4
drop x1_hat
end
//bootstrap SEs
bootstrap, rep(100) seed(123):my2sls
Bootstrap replications (10)I have tried the advice on this thread (https://www.statalist.org/forums/for...s-will-be-save) to specify the nodrop option, but get the same error. I have spent the day searching on various forums but have not found a workable solution.
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
xxxxxxxxxx
insufficient observations to compute bootstrap standard errors
no results will be saved
r(2000);
Any suggestions as to how to resolve this issue would be highly appreciated. I am using Stata 13.1.
Very many thanks in advance.
Comment