Skip to contents

Make vector of likelihood families

Usage

make_inlamemi_families(family_moi, inlamemi_stack)

Arguments

family_moi

a string indicating the likelihood family for the model of interest (the main model).

inlamemi_stack

object of type inla.stack

Value

A vector specifying the likelihood family for each model level.

Examples

simple_stack <- make_inlamemi_stacks(formula_moi = y ~ x + z,
                                     formula_imp = x ~ z,
                                     data = simple_data,
                                     error_type = c("classical"))
make_inlamemi_families(family_moi = "gaussian",
                       inlamemi_stack = simple_stack)
#> [1] "gaussian" "gaussian" "gaussian"