Skip to contents

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 using mod_pois(), mod_binom(), or mod_norm().

Value

An integer

See also

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