Skip to contents

Test whether fit() has been called on a model object.

Usage

is_fitted(x)

Arguments

x

An object of class "bage_mod".

Value

TRUE or FALSE

See also

Examples

mod <- mod_pois(injuries ~ age + sex + year,
                data = nzl_injuries,
                exposure = popn)
is_fitted(mod)
#> [1] FALSE
mod <- fit(mod)
is_fitted(mod)
#> [1] TRUE