| elicit_normal | R Documentation |
Elicit a Normal prior via quantile matching or moment matching
elicit_normal(
quantiles = NULL,
mean = NULL,
sd = NULL,
method = c("quantile", "moments"),
expert_id = "Expert_1",
label = "Unknown quantity",
tol = 1e-06
)
quantiles |
Named numeric vector. E.g.
|
mean |
Optional numeric. Expert mean for moment matching. |
sd |
Optional numeric. Expert SD for moment matching. |
method |
Character. |
expert_id |
Character. Expert identifier. |
label |
Character. Quantity description. |
tol |
Numeric. Optimisation tolerance. |
For method = "moments", the Normal is parameterised directly by
its mean and SD, so matching is exact with no transformation required:
\mu = \bar{x}, \sigma = s.
An object of class bayprior.
prior <- elicit_normal(
quantiles = c("0.025" = -0.5, "0.50" = 0.2, "0.975" = 0.9),
label = "Log odds ratio"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.