# LME residual plot returns a huge linear block of residual points

The publicly available data I used

https://content.sph.harvard.edu/fitzmaur/ala2e/cd4.txt

I addressed the unbalanced followup visits by transforming the visit time to the nearest multiple of 8 then de-duplicated visit times.

I then used last observation carried forward to impute missing log CD4 values. Then ran two linear mixed intercept models (log CD4 ~ time) on the raw data and on the imputed data. I checked the residual plots and I got these.

Raw model residuals Imputed model residuals

So I see that my imputation method has made some of the residuals more normal, but why is there that huge group of fitted values around 3? How would I be able to address that?

The models I fit:

raw_3_model <- lme(log_CD4_1 ~ Time, random = ~Time|ID,
data = raw_data, method = "REML",
na.action = na.exclude)

treatment_3_model <- lme(measurements ~ time, random = ~time|ID,
data = final_3, method = "REML",
na.action = na.exclude)

• Could you post the models you fit? Dec 7, 2018 at 19:30
• @user158565 I just added them in!
– j681
Dec 7, 2018 at 19:33
• I did not get the results like you did. Dec 7, 2018 at 23:25
• @user158565 Would there be a way I could see what your residuals look like? Was it of the raw data?
– j681
Dec 8, 2018 at 22:03
• "transforming the visit time to the nearest multiple of 8 then de-duplicated visit times." In fact, I think I misunderstood this sentence. What exactly did you do on time variable? Dec 8, 2018 at 22:05

A couple of points:

• Mixed models work with unbalanced data. Hence, you do not need to transform the visit times to be balanced nor to delete any measurements. Actually, if you are interested in the longitudinal evolution it is better not to have balanced data.
• Mixed models will provide you with valid inferences under the missing at random missing data mechanism. Hence, you do not need to impute any missing data. Moreover, the last observation carried forward is a terrible method of imputation that does not even provide correct inferences under the missing completely at random mechanism.
• In the residuals plots you see two things: (1) the vertical lines around 3 come from the baseline measurement because all subjects were measured at 0; (2) the diagonal lines on the bottom left come from the bounded nature of the CD4 cell count outcome (i.e., it is greater or equal than zero and you have measurements at and close to this boundary).
• That's really helpful! Thank you Dimitris! Should I impute missing baseline information then? And keep the followup data missing as is?
– j681
Dec 9, 2018 at 21:21
• You mean imputing the baseline value of the outcome CD4 cell count or baseline covariates? Regarding the former, if you do not include the baseline CD4 cell count measurement as a baseline covariate in the model, you do not need to impute it. Regarding the latter, you could consider imputing covariates with missing data. Dec 10, 2018 at 8:44