Hi there, I am currently completing my honours thesis and have been confronted with quite an obstacle due to the nature of my data. I am working with longitudinal LSAC data which has a K-cohort (aged 4-5 in 2004) and a B-cohort (aged 0-1) for the study children in the sample. I have cleaned the data for the respective cohorts, and now am using the command append to import each of the dta files for the cohorts.
The variable “cohort” is coded “B” or “K” for each child, and I have also generated binary Bcohort and Kcohort terms too.
I have then merged the test-score outcomes (Australian NAPLAN scores) on these files using merge m:1 with my “many” variable being the identification number of the child. This all works fine in my code. Whether this is where I have slipped up??
My DID is looking at those B-cohort study children in the state of NSW compared to that of the K-cohort, as in the time period between the cohorts a $77 million NSW policy injection happened only in NSW.
My issue arises when attempting to identify the treatment variable (NSW B cohort) against those who were not in NSW, and also the K cohort who never experienced any form of policy injection.
My question is: is it possible to be able to create these respective control and treatment groups and run a DID between them?
I am under the impression that the “diff” command does not allow me to specify a control group as such. Is there away around this? Is there a different more efficient way of computing a DID with two separate cohorts?
Any suggestions or recommendations would be really appreciated.
Thanks,
A stressed honours student
Related Posts with DID - specifying control cohort and treatment cohort
-merge- not finding all matchesI'm running Stata version 14.2 on Windows. My analysis includes weight data for children. My main an…
how to merge data using different key variable names?I want to merge data between variable1 in dataset1 and variable2, variable3, variable4 in dataset2 r…
How to compute constant on fixed effects Quantile regressionHi, I know that xtqreg command does not show any constant, however, as i am working on a genetics t…
High R-square in ppmlDear Statalist community, I would like to clarify few things about using ppml on gravity data. 1. …
Diff-in-Diff covariate collinearity issueHi all. I'm running a difference-in-difference model with the new xtdidregress command. When I inclu…
Subscribe to:
Post Comments (Atom)
0 Response to DID - specifying control cohort and treatment cohort
Post a Comment