| prior_pc | R Documentation |
Specify a PC prior for a positive parameter (typically a standard deviation). PC priors shrink toward simpler models by penalizing deviation from a base model.
prior_pc(U = 1, alpha = 0.01)
U |
Upper bound. P(x > U) = alpha. |
alpha |
Tail probability. Default 0.01. |
The PC prior is specified via: P(sigma > U) = alpha
U is the upper bound you consider "large"
alpha is the probability of exceeding it
This implies an exponential prior with rate = -log(alpha) / U.
A tulpa_prior object
Simpson, D., Rue, H., Riebler, A., Martins, T. G., & Sorbye, S. H. (2017). Penalising model component complexity: A principled, practical approach to constructing priors. Statistical Science, 32(1), 1-28.
prior_pc(U = 1, alpha = 0.01) # P(sigma > 1) = 0.01
prior_pc(U = 0.5, alpha = 0.05) # Tighter, P(sigma > 0.5) = 0.05
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.