Hi.
I wonder if someone can help me as I'm loosing my mind here!
I want to use ITS (itsa command) to estimate an intervention effect, taking into account the age and sex profile of participants. I cant seem to set up the dataset correctly as I cant tsset it no matter what I do. I was entering in the same month year in several rows to account for age group and sex, but should it literally just be one row per month as it keeps telling me I have repeated values within panel. How then do i adjust for covariates?
Thanks for any help you can give me!
Eimir
discharge_month sex agegroup population paa date2 date3
1/1/2007 female 1 100000 100 01jan2007 01jan2007
1/1/2007 male 1 90000 90 01jan2007 01jan2007
1/1/2007 female 2 200000 300 01jan2007 01jan2007
1/1/2007 male 2 180000 90 01jan2007 01jan2007
1/1/2007 male 3 360000 766 01jan2007 01jan2007
1/1/2007 female 3 400000 500 01jan2007 01jan2007
Related Posts with Setting up dataset for itsa to adjust for covariates
Loop with consecutive numbersHello Stata community, I am trying to replace multiple id of a data set, where the ids are consecut…
Pasting the data from Excel to Stata converts values of the variableDear Stata Members I am dealing with some financial data like income, total assets, etc. Many of the…
Adding 4 arguments in setstars() of asdoc / asdocxI seem to experience an issue with the setstars() arguments using asdoc or asdocx. It seems that it …
Format regression coefficients using file writeI am outputting non-standard tables to TeX and using file write following this example: https://gith…
fixed effects and and vce(robust) in poisson regressionHello everyone, I am aware that this is more of a statistical quuestino than a question on Stata but…
Subscribe to:
Post Comments (Atom)
0 Response to Setting up dataset for itsa to adjust for covariates
Post a Comment