View source: R/robust_priors.R
| robust_prior | R Documentation |
Builds a robust prior by mixing an informative component with a vague (diffuse) component, following the RBesT/MAP robust mixture approach (Schmidli et al., 2014). This protects against prior misspecification by ensuring the posterior is not dominated by a conflicting informative prior.
robust_prior(
informative,
vague_weight = 0.2,
vague_sd = NULL,
label = "Robust mixture prior"
)
informative |
A |
vague_weight |
Numeric in (0, 1). Weight assigned to the vague
(diffuse) component. Default |
vague_sd |
Numeric. SD of the vague Normal component (on the
natural scale). If |
label |
Character. Label for the robust prior. |
The vague component is always a Normal distribution centred at
the informative prior's mean with SD = vague_sd (default: 10x the
informative SD). When the informative prior is itself Normal, both
components share the same family and the mixture density is computed
analytically. For any other informative prior family (Beta, Gamma,
Log-Normal, Exponential, Weibull), the components have different
distribution families, and the mixture density is computed
numerically. A warning is issued in this case.
A bayprior object with dist = "mixture" and
prior_type = "robust".
Schmidli, H. et al. (2014). Robust meta-analytic-predictive priors in clinical trials with historical control information. Biometrics, 70, 1023-1032.
informative <- elicit_normal(mean = 0.30, sd = 0.10,
method = "moments", label = "Response rate")
robust <- robust_prior(informative, vague_weight = 0.20)
plot(robust)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.