Dear Statalist,
I have data for individuals (level 1) nested within countries (level 2). I'm interested in estimating how country-level (L21) characteristics moderate the interaction effects between two individual level continuous covariates (L11 x L12). What's the best way to model this situation? I find the discussions divided on incorporating random slopes. If so, I'm unclear what random slopes I should incorporate. Which of the following specifications would be the best?
mixed Y L11##L12##L21 || country:, robust
mixed Y L11##L12##L21 || country: L21, robust
mixed Y L11##L12##L21 || country: L11 L12, robust
mixed Y L11##L12##L21 || country: L11#L12, robust (which is not a possible syntax in stata 15 that I'm using)
I'm interested in making inferences in the form of: the interaction effects would increase by x units, as L21 increases by one unit. I'm also not interesting in the effect of L21 on its own, but only as a moderator. So, I'm looking for the simplest way to understand these moderating effects.
I would appreciate your answers. Thanks!
I have data for individuals (level 1) nested within countries (level 2). I'm interested in estimating how country-level (L21) characteristics moderate the interaction effects between two individual level continuous covariates (L11 x L12). What's the best way to model this situation? I find the discussions divided on incorporating random slopes. If so, I'm unclear what random slopes I should incorporate. Which of the following specifications would be the best?
mixed Y L11##L12##L21 || country:, robust
mixed Y L11##L12##L21 || country: L21, robust
mixed Y L11##L12##L21 || country: L11 L12, robust
mixed Y L11##L12##L21 || country: L11#L12, robust (which is not a possible syntax in stata 15 that I'm using)
I'm interested in making inferences in the form of: the interaction effects would increase by x units, as L21 increases by one unit. I'm also not interesting in the effect of L21 on its own, but only as a moderator. So, I'm looking for the simplest way to understand these moderating effects.
I would appreciate your answers. Thanks!
Comment