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
exploratory factor analysis w/ maximum likelihood estimation, model comparisonDear Statalisters, I am trying to conduct an EFA on 17 binary variables. I have successfully used b…
Dummy Variable - Add time variableDear Statalister, I would like to ask how can I create a code for the following variable (See attac…
Another way of measuring period effect on investment risk tolerance?I'm doing a research about the relationship between investment risk tolerance and demographic factor…
how to get minimum values based on non overlapping rolling window?I want to use the daily_residuals of the past 250 days to estimate the residual risk series, for eac…
Regression in subgroupsHi everyone, I am running a logit model in a sample with many countries. I want to apply the logit m…
Subscribe to:
Post Comments (Atom)
0 Response to Setting up dataset for itsa to adjust for covariates
Post a Comment