Hello,
I am using StataMP 18.0 on Windows 10 and want to test the assumptions of my multilevel linear regression.
I have used the mixed command as follows:
I have found the following assumptions for MLM:
I am using StataMP 18.0 on Windows 10 and want to test the assumptions of my multilevel linear regression.
I have used the mixed command as follows:
Code:
mixed y x1 x2 [pw = weight] || L2:, mle
- The model is correctly specified (i.e., all the predictors associated with the outcome and relevant random effects are included)
- I would do this with a self made link test as specified here https://www.statalist.org/forums/for...el-assumptions
- The functional form is correct (e.g., the relationship between the predictors and outcome is linear if using a linear model);
- This will be assessed by theory
- Level-1 residuals are independent and normally distributed;
- I know how to assess the normal distribution of residuals with a qq plot (using predict, res & qnorm/pnorm), but I do not understand how to extract level 1 residuals only
- Level-2 residuals are independent and multivariate normally distributed;
- I would do this the following way:
Code:predict l2res, res relevel(L2) qnorm l2res pnorm l2res
- I would do this the following way:
- Residuals at level-1 and level-2 are unrelated;
- I assume I could test this by correlating the L1 and L2 residuals but for that again, I would need to know how to extract Level1 residuals independently
- Predictors at one level are not related to errors at another level (homoscedasticity).
- I have no idea how I should test this. I found the article by Antonakis et al. (2021) "On ignoring the random effects assumption in multilevel models:
Review, critique, and recommendations" but I have trouble fully understanding it and whether this is actually testing what I want to be testing.
- I have no idea how I should test this. I found the article by Antonakis et al. (2021) "On ignoring the random effects assumption in multilevel models:

Comment