Hello everyone,
I'm hoping someone can tell me what I'm doing wrong because I've hit a wall with my dissertation. So here goes:
My dissertation (roughly) involves the following steps:
1) Simulate multilevel data (two level model): The model looks like this: Yij=(G00 + G01*Wj + uoj) + (G10 + G11*Wj + u1j)*X1ij + (G20 + G21*Wj + u2j)*X2ij + eij
2) Impose missingness (missing at random and missing completely at random) on two level 1 variables (the outcome Y and a level 1 covariate X1 where missingness on both is dependent on the values of X2): the probability of missingness is: P(Rij)=exp(B0+B1X2ij)/(1+exp(B0+B1X2ij))
3) Impute missing data using a multilevel model
So far, I've tried completing step 3 above using the package "pan" in R and can't seem to get the specify the psi matrix (the variance covariance matrix for the random effects) as something other than an identity matrix. After trying a lot of different things in the pan package, I purchased MLwiN.
I started off by specifying the multivariate model depicted in the attached document (Y_4 is the Y variable with 50% missing data and X1_4 is the X1 variable with 50% missing data) using IGLS.
Then, I tried to use these starting values using MCMC to obtain the multiply imputed datasets and MLwiN gives me an error stating that: MCMC Error: Residual S.E. column is too short or contains missing values(MCMC).
Any thoughts or recommendations would be greatly appreciated!
Multilevel Multiple Imputation
Multilevel Multiple Imputation
- Attachments
-
- screenshot of mlwin specification
- Capture.PNG (60.35 KiB) Viewed 5611 times
Re: Multilevel Multiple Imputation
Dear medha001,
Just last week we came across a similar issue. The problem is if you have individuals who are missing on all responses then this causes issues with MLwiN when you switch to MCMC. We have made a change that will fix these issues, which will appear in the next version 2.27 but strictly speaking it is not very sensible to include individuals who are completely missing in a multiple imputation: they have no information to add to the model and will not help get better estimates etc. My advice is therefore to remove these individuals from the data prior to imputing which will work in the current version. I guess this might be harder to do in a simulation setting though it should be feasible.
Regards,
Bill.
Just last week we came across a similar issue. The problem is if you have individuals who are missing on all responses then this causes issues with MLwiN when you switch to MCMC. We have made a change that will fix these issues, which will appear in the next version 2.27 but strictly speaking it is not very sensible to include individuals who are completely missing in a multiple imputation: they have no information to add to the model and will not help get better estimates etc. My advice is therefore to remove these individuals from the data prior to imputing which will work in the current version. I guess this might be harder to do in a simulation setting though it should be feasible.
Regards,
Bill.
Re: Multilevel Multiple Imputation
Thank you very much for the reply Bill! I will try excluding cases with data missing on both variables before using mlwin.
Sincerely,
Amanuel
Sincerely,
Amanuel