I have been trying to use calloway and Santanna DiD on IPUMS CPS data but not doing so well due to having repeated cross section.
The other day I came across an online thread where it was suggested that if I collapse it on state level then this will be easy to implement due to the nature of repeated cross section. At first I clean and collapse the data at state level in stata then I run the CSDiD on R.
If anyone can kindly give me a feedback on my coding , that's going to make a big difference in further progress of my research.
*** Collapsing on state level ( I collapsed year but I ain't sure that's a right thing to do or not . However, I'll need the year variable for CSDID implementation later )
collapse ln_incwage male ismarried wasmarried age black asian hispanic lths hsdegree somecollege law_change year gvar [aw=asecwt], by(statefip)
Does the collapsing on state level seem reasoanble ?
Related Posts with CSDID Implementation after collapsing on state level
calculate a variable as residual of a regression model, industry-quarter regressionsHi, I want to calculate or generate a new variable called “Doancfq_ram”. I calculate Doancfq_ram as…
Generate timing from existing datesHello everyone, I will appreciate an urgent help with how to go about this statistical issue. I wan…
new variable: replace with nonumeric variable contentHey, I want to generate a new variable out of a variable that is already existing. However, the exi…
Colour Coding Markers In a Weighted Scatter PlotI am trying to create a scatter plot of Disease Mortality (CD_Mortality) and Income (GDP) weighted b…
Applying condition on variable labelsDear stata users, I am curious whether it is possible to apply IF on variable labels. Or is there an…
Subscribe to:
Post Comments (Atom)
0 Response to CSDID Implementation after collapsing on state level
Post a Comment