Description Usage Arguments Details Value Examples
Specify a prior
1 |
distribution |
the prior distribution (see details) |
... |
see details |
The following distributions can be used for the prior
normal
a normal distribution
uniform
a uniform distribution
point
a point
The parameters that need to be specified will be dependent on the
distribution
When distribution
is set to normal
then the following
parameters must be set
mean
mean of the normal prior
sd
standard deviation of the normal prior
range
(optional) a vector specifying a paramter range
When distribution
is set to uniform
then the following
parameters must be set
min
the lower bound
max
the upper bound
When distribution
is set to point
then the following
parameters may be set
point
the location of the point prior (default: 0)
an object of class prior
1 2 3 4 5 6 7 8 9 10 11 | # specify a half-normal (range 0 to Infinity) prior
prior(distribution = "normal", mean = 0, sd = 13.3, range = c(0, Inf))
# specify a normal prior
prior(distribution = "normal", mean = 0, sd = 13.3)
# specify a uniform prior
prior(distribution = "uniform", min = 0, max = 20)
# specify a point prior
prior(distribution = "point", point = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.