Project

General

Profile

Actions

Support #2335

open

Weights for Two Level Longitudinal Multilevel Model: Wave and Respondent

Added by Benedict John Hignell 6 days ago. Updated 2 days ago.

Status:
Feedback
Priority:
Normal
Category:
-
Start date:
03/01/2026
% Done:

80%


Description

Dear User Support Team,
I hope you are well. I am planning to run a multi-level model to longitudinally analyse data from waves 1, 3, 6, and 9 of Understanding Society. Following the advice on Understanding Society MLM Analysis guidance page (https://www.understandingsociety.ac.uk/documentation/mainstage/user-guides/main-survey-user-guide/analysis-guidance-for-weights-when-fitting-multilevel-models/), I am going to use a two level model. An ICC indicated that about 50% of variation in the outcome (GHQ) is at the respondent level rather than at the response (aka wave) level. So, I am going to use the levels of wave and respondent, and I will also set standard errors to be robust to PSU clustering using the “mixed” command in Stata.
Please could you advise me on which weights to use for a two-level multilevel model where level 1 = wave and level 2 = respondent?

I have organised my data so that each respondent has up to three rows. Each row contains an outcome variable from one wave (i.e., outcomes were measured in waves 3, 6, or 9) and predictors that were measured two or three waves before the outcome (i.e., predictors were measured in waves 1, 3, and 6 respectively). I have attached an example of the data structure in case that is helpful.

I created a variable called “w_indscus_lw” using the indscus_lw weight for the outcome wave for each row.

Based on https://www.understandingsociety.ac.uk/documentation/mainstage/user-guides/main-survey-user-guide/analysis-guidance-for-weights-when-fitting-multilevel-models/, I think the correct stata syntax would be:
mixed outcome predictors [pw= 𝑤ᵢ|ⱼ] || pidp:, mle pweight(𝑤ⱼ) vce(cluster psu) pwscale (gk)

Please could you let me know which weighting variables would be appropriate to use as 𝑤ⱼ, and 𝑤ᵢⱼ or 𝑤ᵢ|ⱼ?

Could “w_indscus_lw” be used as 𝑤ᵢⱼ?
If so, could I use “c_indscus_lw” as 𝑤ⱼ ?
And then could 𝑤ᵢ|ⱼ be “c_indscus_lw”/ “w_indscus_lw”?

Or should I use an earlier variable as 𝑤ⱼ? Such as a_indinus_xw?

Many thanks,

Benedict Hignell


Files

260301exampleData.png (20.6 KB) 260301exampleData.png Benedict John Hignell, 03/01/2026 07:31 PM
Actions #1

Updated by Understanding Society User Support Team 6 days ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 80

Thanks for your question. Our methods expert has said that standard weighting is needed here. The complexity arises only when levels of the model include higher-level sampling units like households and areas, but that’s not the case with your model in which individual is level 2 and person-wave level 1. You just need to use the svy version of your command along with standard weights.

Hope this helps. If not, or you have further questions please let us know.

Best wishes,
Understanding Society User Support Team

Actions #2

Updated by Benedict John Hignell 3 days ago

Dear Understanding Society User Support Team,
Thank you for your response. For the svy version of the command, would the following be your recommended approach:

svyset psu, weight(i_indscus_lw) strata(strata) singleunit(centered)
svy: meglm outcome predictors || pidp:

That approach was suggested by a Statalist user (https://www.statalist.org/forums/forum/general-stata-discussion/general/1706479-analysis-of-repeated-measures-using-mixed-effects-and-svy-command) but I am not sure if it is correct.

The above code is using i_indscus_lw instead of w_indscus_lw because when only one weight is specified and that is at the individual level, then each individual has to have the same weight for all their responses. Are you aware of any alternative weighting approaches (e.g., something using w_indscus_lw) that would enable respondents to be included in the analysis if they had outcomes in wave 3 and 6, but not wave 9 (see the example data attached to the initial posting)? For instance, could the following be appropriate:

svyset psu, strata(strata) singleunit(centered) || pidp, weight(w_indscus_lw)
svy: meglm scghq1 $model5 || pidp:

Many thanks,

Benedict

Actions #3

Updated by Understanding Society User Support Team 2 days ago

  • Private changed from Yes to No
Actions

Also available in: Atom PDF