Using the Grunfeld data, this runs just fine:
But the following does not. (I added i.company#c.time to the dependent variable list.)
I think I understand that the problem is that when bootstrap takes a sample, some clusters are likely to be missing, and so some of the interacted dummy variables are going to be all zeros, and this generates an error.
Ordinarily Stata automatically omits variables that are all zero. Is there a way for these variables to be omitted in a bootstrap repetition so that the coefficients on the other variables can be stored?
Thank you.
Code:
bootstrap, reps(50) cluster(company) idcluster(comp): xtqreg invest mvalue kstock, quantile(.25) i(company)
Code:
bootstrap, reps(50) cluster(company) idcluster(comp): xtqreg invest mvalue kstock i.company#c.time, quantile(.25) i(company)
Ordinarily Stata automatically omits variables that are all zero. Is there a way for these variables to be omitted in a bootstrap repetition so that the coefficients on the other variables can be stored?
Thank you.
Comment