I'm trying to use the user-created "sdid" command for a project. I want to run a placebo check where I assign treatment to every unit in my analysis, however, doing so eventually generates a 3200 conformability error.
The following code generates the error for me at the 28th iteration of the loop.
Interestingly, decreasing the number of bootstrap replications seems to stave off the error message. With reps(50), I get no error.
Why is this happening and is there anything I can do about it?
Any help would be much appreciated!
The following code generates the error for me at the 28th iteration of the loop.
Code:
* Load data webuse set www.damianclarke.net/stata/ webuse prop99_example.dta, clear * Convert unit to numeric to loop over encode state, gen(state_code) * Loop over all possible units forvalues state = 1/39 { * Generate placebo treatment gen placebo`state' = (state_code == `state' & year >= 1989) * Run analysis sdid packspercapita state year placebo`state', vce(placebo) reps(500) }
Why is this happening and is there anything I can do about it?
Any help would be much appreciated!
Comment