| .mixture_working_prior | R Documentation |
Sensitivity grids are defined over a single distribution family's
hyperparameters, so mixture priors (from aggregate_experts
or robust_prior) need a single-family stand-in. This
moment-matches the mixture's actual pooled mean and SD (from
prior$fit_summary) to the dominant component's family, so the
working prior reflects the full pooled information rather than
discarding all but one component. Falls back to the dominant component
alone, with a warning, if the family cannot be moment-matched from
mean/SD (e.g. "exponential", "weibull") or if
fit_summary$sd is unavailable (e.g. logarithmic pooling).
.mixture_working_prior(prior, quiet = FALSE)
prior |
A |
quiet |
Logical. If |
Shared by sensitivity_grid and the Shiny sensitivity
module (mod_sensitivity.R) so that the parameter ranges shown in
the UI are always centred on the same working prior actually analysed.
See aggregate_experts for the pooled mean/variance
formula, and elicit_beta, elicit_normal,
elicit_gamma, elicit_lognormal for each
family's moment-matching identities.
A single-family bayprior object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.