This function takes an existing set of prior distributions and updates them with new prior specifications. It matches priors based on their parameter class, coefficient, group, response, distributional parameter, and non-linear parameter.
Arguments
- old_prior
One or more prior distributions in the class
brmspriorto be updated.- prior
One or more prior distributions in the class
brmspriorcontaining the new specifications. Can include manually specified priors using the syntaxparameter ~ distribution.- enforce_presence
If
TRUEthen only keep rows that have both old and new priors. IfFALSEthen keep all rows but use new priors where available, otherwise keep old priors. Defaults toTRUE.
Details
Prior distributions can be specified in two ways:
Using the standard
brmsprior specification format. These priors are replaced based on matching parameter metadata (class, coefficient, group, etc.).Using manually specified priors with the syntax
parameter ~ distribution. These replace existing manual priors for the same parameter name and are otherwise left alone. Manual priors are excluded from the metadata based matching.
