Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Analysis of repeated measures using mixed effects and svy command

    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

  • #2
    I didn't get a response to this question however, I have since found the answer to this question and wanted to post in case anyone else had a similar question. The correct way to specify this model is as follows.

    svyset || PSU, weight(sampleWT) strata(Strata) singleunit(centered)
    svy: meglm outcome i.group##c.time || individual_ID:time

    Comment

    Working...
    X