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
Comparing dendrogramsDear Stata users, Is there any way to compare dendrograms in STATA? ARe there any measures similar t…
Split data frame by years Hi everybody, I am new in Stata. I want to split a data frame into several smaller ones. This look…
Determine which portfolio a given observation falls into according to portfolio breakpointsGood Sunday I have encountered some questions, and I urgently need some help. I would like to expre…
Sample split vs. interactions, different t-valuesDear Statalisters, let's say we are interested in the effect of mpg on price for domestic and forei…
Power calculation in Cohen's kappaCan anyone please tell me command for power calculation in Cohen's kappa? Many thanks! …
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapped SEs for quantile regression
Post a Comment