Description Usage Arguments Value Author(s) Examples
residuals.gt is a function which extracts model residuals from objects of class "gt" returned by gtreg
.
1 2 |
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 |
Residuals of group responses extracted from the object object.
Boan Zhang
1 2 3 4 5 6 | 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.