Evaluate residuals matrix as Y - invLink(Mu)
Usage
computeResiduals(
Y,
Mu,
family,
nb.theta,
type = c("deviance", "pearson", "response", "response.se")
)Arguments
- Y
matrix of responses along the _rows_
- Mu
matrix of predictions along the _rows_
- family
regression family for the inverse link function
- nb.theta
overdispersion parameters theta for negative binomial models, one value per row in
Y- type
type of residuals to evaluate:
c("deviance", "pearson", "response", "response.se")