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
Maximum Likelihood Exploratory Factor Analysis and Confirmatory Factor AnalysisDear Statalist users, I am using Stata 15 and comparing the results between Maximum likelihood expl…
How to plot differences in means for diff-in-diff common trend (from Bleakeley & Chin (2004))Dear Stata community, This is my first post on the forum. I'm struggling to recreate figure 1 from …
How to make a hbar which shows percentage of sum of one variable over groupsI have a dataset like this (part of it): Code: * Example generated by -dataex-. To install: ssc in…
Listing unique observations with a rolling windowDear all, Suppose I have the following dataset: Code: clear input str8 memberid year "B000" 1980…
Dummy Variables OmmittedIn a study looking at the effect of foreign ownership, we have run into the issue that our variables…
Subscribe to:
Post Comments (Atom)
0 Response to CSDID Implementation after collapsing on state level
Post a Comment