residuals.gtReg {binGroup2} | R Documentation |
Extract model residuals from objects of class "gtReg" returned
by gtReg
.
## S3 method for class 'gtReg'
residuals(object, type = c("deviance", "pearson", "response"), ...)
object |
An object of class "gtReg", created by |
type |
The type of residuals which should be returned. Options include "deviance" (default), "pearson", and "response". |
... |
currently not used. |
Residuals of group responses extracted from the object object.
This function was originally written by Boan Zhang as the
residuals.gt function for the binGroup
package.
data(hivsurv)
fit1 <- gtReg(formula = groupres ~ AGE * EDUC.,
data = hivsurv, groupn = gnum,
linkf = "probit")
residuals(object = fit1, type = "pearson")
residuals(object = fit1, type = "deviance")