## S3 method for class 'merMod':
residuals(object,
type = if (isGLMM(object)) "deviance" else "response",
scaled = FALSE, ...) ## S3 method for class 'lmResp':
residuals(object,
type = c("working", "response", "deviance", "pearson", "partial"),
...)
## S3 method for class 'glmResp':
residuals(object,
type = c("deviance", "pearson", "working", "response", "partial"),
...)
merMod) objectlmerModandglmerModobjects: they try to
mimicresiduals.lmandresiduals.glmrespectively. In particular,
the defaulttypeis"response", i.e.
(observed-fitted) forlmerModobjects vs."deviance"forglmerModobjects.type="partial"is not yet implemented for either
type."pearson"residuals differs betweenresiduals.lmandresiduals.lme. The former returns values
scaled by the square root of user-specified weights (if
any), butnotby the residual standard deviation,
while the latter returns values scaled by the estimated
standard deviation (which will include the effects of any
variance structure specified in theweightsargument). To replicatelmebehaviour, usetype="pearson",scaled=TRUE.