residuals.bbl {bbl} | R Documentation |
Residuals of BBL fit
Description
Binary-valued vector of fitted vs. true response group
Usage
## S3 method for class 'bbl'
residuals(object, ...)
Arguments
object |
Object of class |
... |
Other arguments |
Details
Discrete response group identity for each data point is compared with the fitted group and 0 (discordant) or 1 (concordant) is returned
Value
Vector binary values for each data point
Examples
titanic <- as.data.frame(Titanic)
dat <- freq2raw(titanic[,1:4], freq=titanic$Freq)
fit <- bbl(Survived ~ .^2, data=dat)
x <- residuals(fit)
table(x)
[Package bbl version 1.0.0 Index]