| elicit_gamma | R Documentation |
Elicit a Gamma prior via quantile matching or moment matching
elicit_gamma(
quantiles = NULL,
mean = NULL,
sd = NULL,
method = c("quantile", "moments"),
expert_id = "Expert_1",
label = "Unknown quantity",
tol = 1e-06
)
quantiles |
Named numeric vector of quantiles. Values must be positive. |
mean |
Optional numeric. Expert mean. |
sd |
Optional numeric. Expert SD. |
method |
Character. |
expert_id |
Character. Expert identifier. |
label |
Character. Quantity description. |
tol |
Numeric. Optimisation tolerance. |
For method = "moments", mean and SD are matched to the Gamma's
shape-rate parameterisation via
\text{shape} = \left(\frac{\bar{x}}{s}\right)^2, \quad
\text{rate} = \frac{\bar{x}}{s^2}
An object of class bayprior.
prior <- elicit_gamma(
mean = 5, sd = 2,
method = "moments",
label = "Median OS (months)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.