R/s3methods.R
residuals.fastlmm.Rd
Extract Model Residuals
# S3 method for class 'fastlmm' residuals(object, type = c("working", "response", "deviance", "pearson"), ...)
fitted model of class fastlmm
fastlmm
the type of residuals which should be returned.
other args, not used
residuals.glm()
library(MASS) # GLMM via PQL fit <- fastglmm(y ~ trt + I(week > 2) + (1 | ID), family = binomial(), data = bacteria) residuals(fit)[1:3] #> [1] 0.1859579 0.1859579 0.4085591