Good afternoon everyone,
I'm attempting to run a 3-level model, where I observe repeated observations of individuals (qid)'s log consumption (lconspcm) over time within subdistricts (subdistr). My data is in long format. I am currently using Stata 13 with xtmixed command as follows:
xtmixed lconspcm || subdistr: || qid:, mle
I have 2 questions:
1) How to incorporate sample weights in this case: Level 1: time; Level 2: individual; Level 3: subdistrict? Do I need to weight the repeated observations at all?
2) How to run the model for a specific subpopulation? I have seen svy commands using subpop for many multilevel models in Stata 14 - however not for mixed (xtmixed respectively).
Has someone any suggestions how to proceed with these 2 questions?
Thanks a lot in advance!
Sabine
I'm attempting to run a 3-level model, where I observe repeated observations of individuals (qid)'s log consumption (lconspcm) over time within subdistricts (subdistr). My data is in long format. I am currently using Stata 13 with xtmixed command as follows:
xtmixed lconspcm || subdistr: || qid:, mle
I have 2 questions:
1) How to incorporate sample weights in this case: Level 1: time; Level 2: individual; Level 3: subdistrict? Do I need to weight the repeated observations at all?
2) How to run the model for a specific subpopulation? I have seen svy commands using subpop for many multilevel models in Stata 14 - however not for mixed (xtmixed respectively).
Has someone any suggestions how to proceed with these 2 questions?
Thanks a lot in advance!
Sabine
Comment