Learn R Programming

bbl (version 1.0.0)

residuals.bbl: Residuals of BBL fit

Description

Binary-valued vector of fitted vs. true response group

Usage

# S3 method for bbl
residuals(object, ...)

Arguments

object

Object of class bbl

...

Other arguments

Value

Vector binary values for each data point

Details

Discrete response group identity for each data point is compared with the fitted group and 0 (discordant) or 1 (concordant) is returned

Examples

Run this code
# NOT RUN {
titanic <- as.data.frame(Titanic)
dat <- freq2raw(titanic[,1:4], freq=titanic$Freq)
fit <- bbl(Survived ~ .^2, data=dat)
x <- residuals(fit)
table(x)
# }

Run the code above in your browser using DataLab