Hello,
I am trying to understand whether my code does what I think it does, and whether the analysis makes sense.
Originally, I am running a 5 level model:
Now, I would like to perform the following analysis - how does y changes with x4 interacted with some variable z. E.g. Say y is student grade, x1 is county, x2 city, x3 is school, x4 is principal. Z is city budget. I would like to interact school budget with principal, to understand whether principal affect student grade, and whether this effect changes with the size of the city's budget (higher budget can mean they can hire better principals, spend more funds on students, etc.) Then I guess I have 2 questions. 1) Can mixed models provide me with such analysis? 2) does the following model gives me the answer.
Thank you in advance, the work you do here is such a blessing! Dudi
I am trying to understand whether my code does what I think it does, and whether the analysis makes sense.
Originally, I am running a 5 level model:
Code:
mixed y || x1:|| x2: || x3: || x4:
Code:
mixed y budget|| x1:|| x2: || x3: || x4: budget
Comment