Hi,
I have a standard difference-in-differences setup where a reform is introduced in one region in a given year but none of the other regions. I’d like to estimate the effect of the reform across the distribution of the outcome variable. To do this, I am using the rifhdreg package, with the following code:
loc nreps = 1000
loc seed = 1019
glo controls “age gender income”
forval n = 1(1)99 {
bootstrap, reps(`nreps') seed(`seed'): rifhdreg outcome treat##post $controls, cluster(region) rif(q(`n'));
}
However, about 35% of the repetitions fail with the error message that “collinearity in replicate sample is not the same as the full sample, posting missing values”. See, for example, this output:
Array
It looks like that when re-sampling, it’s drawing samples without observations from all four groups that are needed to identify the parameters in the difference-in-differences model: (i) pre-reform control regions, (ii) pre-reform treatment region, (iii) post-reform control regions, and (iv) post-reform treatment region.
Is there a way to ensure that I'm drawing samples with observations from each of these four groups? If not, what is the best way to proceed?
Thanks in advance!
Related Posts with Bootstrapped SEs for quantile regression
"0 (empty)" during logistic regressionDear Forum, I am having a problem with a logistic regression that uses an interaction variable, dum…
Saving the coefficients of the time fixed effect and averaging itDear Statalists, I would like to make out of sample predictions based on a two way fixed effect mod…
Generate a list of unique firmsHi, I have a panel data and would like to generate a list of unique firms (e.g. gvkey), preferable e…
Create a new variable from existing variables where the categories are not mutually exclusiveHi, I am trying to create a new variable adv_outcome. I have 5 pre-existing variables I am interest…
Dynamic panel gravity model with PPMLDear Joao Santos Silva Tom Zylkin , Currently, I'm doing an investigation about the effects of Free…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapped SEs for quantile regression
Post a Comment