Skip to content
Prev 13801 / 20628 Next

LMM diagnostics: conditional residuals correlated highly with fitted values

My example is not a requirement of a LMM but rather an example of a
distribution of a variable which can cause troubles with a LMM. Think of an
area. An area cannot be negative. This can cause artefacts into the
residuals when you have lots of values near zero. Have a look at this
example.

n <- 200
dataset <- data.frame(
  X = runif(n)
)
dataset$eta <- -.1 + 3 * dataset$X
dataset$Y <- rpois(n, lambda = exp(dataset$eta))
model <- lm(Y~ X, data = dataset) #wrong analysis for this kind of data,
here just an illustration of the problem
plot(fitted(model), resid(model))

But this doesn't seems to be the problem in your case.

I would recommend that you see if there are patterns in the residuals when
you plot them against the covariates. Maybe you are missing an interaction
or even an important covariate.

Best regards,


ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2015-10-07 17:29 GMT+02:00 Yizhou Ma <maxxx848 at umn.edu>: