Skip to content
Prev 15638 / 20628 Next

Residuals look "mirrored" when using lmer with imputed data

Uh ... part of my problem is the term "AUC". Without some very explicit
note to the contrary, AUC on a stats forum often refers to a cumulative
probability or the Receiver Operating Characteristic (ROC AUC).
Remember, we're doing this in our free time, so I am often quick and
don't read every line of code ....

You're effectively using a rectangular approximation for your integral
and that's something else to be careful with in terms of approximation.
But why impute separately here? You might be able to use a suitable
integral approximation to skip imputation:
group_by(ID, treatment) %>%??mutate(AUC =
sum(diff(sampleNum)*rollmean(value,2)))
yields similarly flat tails on the qqplot. (Okay, maybe don't use the
rectangular approximation without proper imputation; this didn't work
as well as I'd hoped.)

In both cases, the residual plot looks not horrible to me, but the
qqnorm plot suggests some issues with bounding -- those flat tails look
you're running into some minimal/maximal value. At the lower end, the
obvious answer is "zero"; at the upper end, maybe you're hitting the
limits of your measurement device? We see which values actually occur,
both with the imputed data and the implicit-imputation-via-integral-
approximation data:
In both cases, we see that the data only take on a relatively small
number of values and indeed there are lots of repetitions at the
bounds.

Phillip