Learn R Programming

bbl (version 1.0.0)

nobs.bbl: Number of Observations in BBL Fit

Description

Returns the number of observations from a BBL fit

Usage

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

Arguments

object

Object of class bbl

...

Other arguments

Value

An integer of number of observations

Examples

Run this code
# NOT RUN {
titanic <- as.data.frame(Titanic)
fit <- bbl(Survived ~ Class + Sex + Age, data=titanic[,1:4], weights=titanic$Freq)
nobs(fit)
# }

Run the code above in your browser using DataLab