|
it looks like the bootstrap sample is not correct.
you have panel data, so you cannot sample the observation directly, instead sample by panel, can you try if this work:
cap prog drop bootsXtregF
prog def bootsXtregF, rclass
preserve
bsample, cluster(id) id(newid)
tsset newid year
gen new_lev = xb+ehat
xtabond2 ??????? * your xtabond2 command here
return sca F=e(F)
restore
end
simulate F=r(F), reps(10) : bootsXtregF
bstat, stat(F)
|