Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals.gt

Extract Model Residuals From a Fitted Group Testing Model


Description

residuals.gt is a function which extracts model residuals from objects of class "gt" returned by gtreg.

Usage

## S3 method for class 'gt'
residuals(object, type = c("deviance", "pearson", "response"),...)

Arguments

object

an object of class "gt" from which the model residuals are to be extracted.

type

the type of residuals which should be returned. The alternatives are: "deviance" (default), "pearson", and "response".

...

currently not used

Value

Residuals of group responses extracted from the object object.

Author(s)

Boan Zhang

Examples

data(hivsurv)

fit1 <- gtreg(formula = groupres ~ AGE * EDUC., data = hivsurv, groupn = gnum,  
              linkf = "probit")
residuals.gt(object = fit1, type = "pearson")
residuals.gt(object = fit1, type = "deviance")

binGroup

Evaluation and Experimental Design for Binomial Group Testing

v2.2-1
GPL (>= 3)
Authors
Boan Zhang [aut], Christopher Bilder [aut], Brad Biggerstaff [aut], Frank Schaarschmidt [aut, cre], Brianna Hitt [aut]
Initial release
2018-08-24

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.