| as_prior | R Documentation |
Construct a bayprior object directly from known hyperparameters
(e.g., literature-based priors), bypassing elicitation.
as_prior(dist, params, label = "Prior", expert_id = "Literature")
dist |
Character. One of |
params |
Named list of hyperparameters. |
label |
Character. Description of the quantity. |
expert_id |
Character. Source identifier. |
A bayprior object.
# Historical Beta(2, 8) prior on response rate
prior <- as_prior("beta", list(alpha = 2, beta = 8),
label = "Historical response rate prior")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.