View source: R/bage_mod-functions.R
| unfit | R Documentation |
Reset a model, deleting all estimates.
unfit(mod)
mod |
A fitted object of class |
An unfitted version of mod.
fit() Fit a model
mod_pois(), mod_binom(), mod_norm() Specify a model
set_seeds() Reset random seeds
Functions such as set_prior(), set_disp() and
set_var_age() unfit models as side effects.
## create a model, which starts out unfitted
mod <- mod_pois(injuries ~ age + sex + year,
data = nzl_injuries,
exposure = popn)
is_fitted(mod)
## calling 'fit' produces a fitted version
mod <- fit(mod)
is_fitted(mod)
## calling 'unfit' resets the model
mod <- unfit(mod)
is_fitted(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.