Create priors on factor contrasts.
Usage
prior_factor(
distribution,
parameters,
truncation = list(lower = -Inf, upper = Inf),
prior_weights = 1,
contrast = "meandif"
)Arguments
- distribution
character. Prior distribution name.
- parameters
list. Distribution parameters.
- truncation
list with
loweranduppertruncation bounds.- prior_weights
numeric prior model weight.
- contrast
character. Contrast coding used for factor levels. Common RoBMA model options are
"treatment","meandif", and"orthonormal"; the standalone helper also accepts BayesTools contrast aliases such as"independent".