I am trying to bootstrap standard errors on a panel data set. There are no firm-year duplicates in the panel.
I have searched for an answer for this throughout the forum and have not found it. Although many people seem to have this problem.
I get the
Error everytime.
Is the solution as simple as:
Thanks for the help.
I have searched for an answer for this throughout the forum and have not found it. Although many people seem to have this problem.
Code:
clear input firmid year y x 1 1 7 3 1 2 5 8 1 3 6 4 1 4 9 4 1 5 6 3 1 7 7 2 2 1 4 7 2 2 5 8 2 3 4 6 2 4 9 4 2 5 4 6 2 6 8 4 end duplicates drop firmid year, force sort firmid year xtset firmid year reg y x bootstrap, cluster(firmid) r(50) idcluster(firmid_cl) seed(123): reg y x
Code:
repeated time values within panel the most likely cause for this error is misspecifying the cluster(), idcluster(), or group() option r(451);
Is the solution as simple as:
Code:
clear input firmid year y x 1 1 7 3 1 2 5 8 1 3 6 4 1 4 9 4 1 5 6 3 1 7 7 2 2 1 4 7 2 2 5 8 2 3 4 6 2 4 9 4 2 5 4 6 2 6 8 4 end duplicates drop firmid year, force sort firmid year xtset firmid year reg y x xtset, clear xtset firmid bootstrap, cluster(firmid) r(50) idcluster(firmid_cl) seed(123): reg y x
Comment