sd_prior | R Documentation |
sd_prior
returns a list characterising the features of the prior.
sd_prior(par_name, dist, dist_pars, type = "constant", min = NULL, max = NULL)
par_name |
A string indicating the name of the estimated parameter. |
dist |
A string indicating the name of the prior distribution. This name should be consistent with Stan language. For instance, "normal" indicates the normal distribution in Stan language. |
dist_pars |
A numeric vector. For instance, if |
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 |
An optional numeric or a string value indicating the estimated
parameter's lower bound. This value overrides the inferred bound from the
prior distribution. For instance, specifying a beta distribution for the
estimated parameter inherently sets the lower bound to 0. Providing a
value to |
max |
An optional numeric value or a string indicating the estimated
parameter's upper bound. This value overrides the inferred bound from the
prior distribution. For instance, specifying a beta distribution for the
estimated parameter inherently sets the upper bound to |
A list
sd_prior("par_beta", "lognormal", c(0, 1))
sd_prior("par_rho", "normal", c(0, 1), min = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.