| prior_beta | R Documentation |
Specify a beta prior for a parameter bounded in (0, 1).
prior_beta(alpha = 1, beta = 1)
alpha |
First shape parameter. Must be positive. |
beta |
Second shape parameter. Must be positive. |
alpha = beta = 1: Uniform(0, 1)
alpha = beta = 2: Symmetric, peaked at 0.5
alpha > beta: Skewed toward 1
alpha < beta: Skewed toward 0
A tulpa_prior object
prior_beta(1, 1) # Uniform
prior_beta(2, 2) # Symmetric, centered at 0.5
prior_beta(5, 2) # Skewed toward 1 (for high autocorrelation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.