residuals.sback {wsbackfit} | R Documentation |
sback residuals
Description
Returns residuals for a fitted sback
object. Deviance, pearson, working and response residuals are available.
Usage
## S3 method for class 'sback'
residuals(object, type = c("deviance", "pearson", "working", "response"), ...)
Arguments
object |
an object of class |
type |
the type of residuals which should be returned: "deviance" (default), "pearson", "working" and "response". |
... |
further arguments passed to or from other methods. Not yet implemented. |
Details
For details see residuals.glm
.
Value
Numeric vector with the residuals.
Author(s)
Javier Roca-Pardinas, Maria Xose Rodriguez-Alvarez and Stefan Sperlich
See Also
sback
, summary.sback
, plot.sback
.
Examples
library(wsbackfit)
data(infect)
# Generalized varying coefficient model with binary response
m3 <- sback(formula = inf ~ sb(gluc, h = 10) + sb(gluc, by = linf, h = 10),
data = infect, family = "binomial", kbin = 15)
summary(m3)
# Deviance
summary(residuals(m3))
# Pearson
summary(residuals(m3, type = "pearson"))
[Package wsbackfit version 1.0-5 Index]