Hi Statalisters,
I posted a question about this earlier, but I didn’t get a response. I’m not sure where else to turn to get this question answered. Hopefully, I’ll have better luck this time. My question involves examining longitudinal data (repeated measures) with a mixed effects model and the svy command. I’m using the Health and Retirement Study which provides strata, PSU, and a sample weight for each individual included in the analysis. Basically, I want to compare different groups over time. Although I’ve searched for an answer, I haven’t found any guidance on how I should specify the svyset and the meglm command to perform this kind of analysis. I currently specify the model as indicated below. Although this works, I’m not sure if it is correct. Can someone tell me if this is correct or tell me the correct way I should be doing this?
svyset PSU, strata(Strata)
svy: meglm outcome i.group##c.time || individual_ID:time, weight(sampleWT)
Thank you,
Brandon
I posted a question about this earlier, but I didn’t get a response. I’m not sure where else to turn to get this question answered. Hopefully, I’ll have better luck this time. My question involves examining longitudinal data (repeated measures) with a mixed effects model and the svy command. I’m using the Health and Retirement Study which provides strata, PSU, and a sample weight for each individual included in the analysis. Basically, I want to compare different groups over time. Although I’ve searched for an answer, I haven’t found any guidance on how I should specify the svyset and the meglm command to perform this kind of analysis. I currently specify the model as indicated below. Although this works, I’m not sure if it is correct. Can someone tell me if this is correct or tell me the correct way I should be doing this?
svyset PSU, strata(Strata)
svy: meglm outcome i.group##c.time || individual_ID:time, weight(sampleWT)
Thank you,
Brandon
Comment