Skip to contents

Returns TRUE if x inherits from class "hbb_fit", FALSE otherwise. This is the recommended way to check whether an object was produced by hbb().

Usage

is.hbb_fit(x)

Arguments

x

Any R object.

Value

Logical scalar.

See also

hbb() for fitting models.

Other fitting: hbb(), print.hbb_fit()

Examples

is.hbb_fit(1)          # FALSE
#> [1] FALSE
is.hbb_fit(list())     # FALSE
#> [1] FALSE

if (FALSE) { # \dontrun{
fit <- hbb(y | trials(n_trial) ~ poverty, data = my_data)
is.hbb_fit(fit)        # TRUE
} # }