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
DiD with kernel PSMDear Statalist users, I am trying to combine a difference-in-difference design with kernel propens…
how to check whether a variable varies over time for each individual in a panel dataDear Statalist, I have a balanced panel data with life satisfaction for each individual over three …
Add common term to a list of different variable labelsHi All, I'm trying to add a common term to the existing variable labels of a dataset, "LPI: ", so t…
Interpreting results from an IVProbit RegressionHello...i need some serious help. I am running a regression (its huge by the way, not sure if you al…
ranksum test porder optionHi all, Good morning! I have done wilcoxin ranksum test with porder in STATA the variable we are te…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapped SEs for quantile regression
Post a Comment