Get the value of n_draw for a model object.
n_draw controls the number
of posterior draws that are generated
by functions such as augment()
and components().
Usage
# S3 method for class 'bage_mod'
n_draw(x)Arguments
- x
An object of class
"bage_mod", created usingmod_pois(),mod_binom(), ormod_norm().
See also
set_n_draw()Modify the value ofn_drawmod_pois(),mod_binom(),mod_norm()Create a model object
Examples
mod <- mod_pois(injuries ~ age:sex + ethnicity + year,
data = nzl_injuries,
exposure = popn)
n_draw(mod)
#> [1] 1000
mod <- mod |>
set_n_draw(n_draw = 5000)
n_draw(mod)
#> [1] 5000