sd_prior | R Documentation |
SD prior
sd_prior(par_name, dist, dist_pars, type = "constant", min_0 = FALSE)
par_name |
A string |
dist |
A string |
dist_pars |
A vector |
type |
A string. It can be either 'constant' or 'init'. It is 'constant' by default. 'init' refers to parameters that have only affect the model at time 0. |
min_0 |
An optional boolean indicating whether the prior has a lower bound at zero. In the current implementation, this parameter only has an effect on normal priors. |
A list
sd_prior("par_beta", "lognormal", c(0, 1))
sd_prior("par_rho", "normal", c(0, 1), min_0 = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.