The dummy variables for each gender_agegroup are as follows: male19-24 =1, male 25-59=2, male60-64=3, and so on for females
The treatment group is treat=1 and I am observing trends in working hours across time for individual-level panel data.
The following seems to generate what I want (mean of treatment and control over time),
Code:
preserve keep if gender_agegroup=1 collapse(mean) WorkingTime_Week, by (treat date) reshape wide WorkingTime_Week, i(date) j(treat) graph twoway line WorkingTime_Week* date, sort legend(label(1 "Control") label(2 "Treated")) restore
What would be a good way to accomplish this?
Best regards
0 Response to Twoway graph of treated/control means by group with smoothing
Post a Comment