Skip to contents

Extracts the number of provider-level observations \(N\) used to fit the hurdle Beta-Binomial model.

Usage

# S3 method for class 'hbb_fit'
nobs(object, ...)

Arguments

object

An object of class "hbb_fit" returned by hbb.

...

Currently unused; included for S3 method consistency.

Value

An integer scalar giving the number of observations.

Examples

if (FALSE) { # \dontrun{
fit <- hbb(y | trials(n_trial) ~ poverty + urban, data = my_data)
nobs(fit)
} # }