This function is intended to be used on the right hand side of the formula
argument to
create_sampler
or generate_data
.
mc_offset(formula, value = NULL, name = "")
An model component object with data and methods needed for dealing with an offset term in model estimation, and prior and posterior prediction. Intended for internal use by other package functions.
model formula.
alternative specification of an offset as a single scalar value that is the same for each data unit.
the name of the model component. This name is used in the output of the MCMC simulation
function MCMCsim
. By default the name will be 'mc_offset' with the number of the model term attached.