I have person-year level data, and I am utilizing DiD that exploits state-level shocks. Each person is assigned to a unique state based on location. I have 10 treated states. While the primary analysis is quite easy to code, I need help with a desire robustness check. I want to write some sort of loop to run placebo (if that's the right term here) tests with treatment assigned to states that should be control states. In other words, I want the placebo analysis to be repeated with the 40 control states and several iterations of assignment among those 40 (can be 10 for each iteration if that is simpler). I have found several topics that seemed adjacent to this, but I could not make sense of using them in my setting. Please let me know if you need any more information.
Justin
Related Posts with Randomly Assigning Treatment
Getting the repeated-measures bse() error (again)Hello, I'm new to the list so apologies for posting a basic question. Until the latest update of ST…
Simple percentiles using wide datasetHello, I'm not sure why I am having such trouble creating a variable corresponding to percentiles. …
Matching several observations via new variableHello everyone, Currently I'm working with a dataset that contains several waves with various ID's …
Checking DuplicationsI am trying to use xtset and I know how to remove any duplications. Is there a way to see if the non…
Same date or within 7 days, within two variablesDear statalist-members, I need to identify patients that got med1 and med2 on the same day, or withi…
Subscribe to:
Post Comments (Atom)
0 Response to Randomly Assigning Treatment
Post a Comment