This function takes two types of priors. Either a functional prior or an empirical prior.

addExposurePrior(model_type, data_t, exp_prior, type = NULL)

Arguments

model_type

rjmc_model created from createModelRJCMCFull()

data_t

data included in the model created from generate_data_t()

exp_prior

a data.frame describing either a functional or empirical prior

type

define a type of exposure prior, func for functional and 'empirical' for empirical. If blank it will assume a uniform distribution between 1 and T.

Value

returns a rjmc model

See also

createModelRJCMCFull() and generate_data_t()