Skip to contents

#' `r lifecycle::badge('deprecated')

Usage

set_datamod_outcome_rr3(mod)

Arguments

mod

An object of class "bage_mod", created with mod_pois(), mod_binom(), or mod_norm().

Value

A modified version of mod.

Details

This function has been deprecated, and will be removed from future versions of bage. Please used function set_confidential_rr3() instead.

Examples

## 'injuries' variable in 'nzl_injuries' dataset
## has been randomly rounded to base 3
mod <- mod_pois(injuries ~ age:sex + ethnicity + year,
                data = nzl_injuries,
                exposure = popn) |>
  set_confidential_rr3() |> ## rather than set_datamod_outcome_rr3
  fit()
#> Building log-posterior function...
#> Finding maximum...
#> Drawing values for hyper-parameters...