Description Usage Arguments Details Value Examples
Creates a prior distribution for a blm object
1 | make_prior(mean, alpha, dim = length(mean))
|
mean |
mean or a vector of the mean(s) of the distribution. |
alpha |
single value or vector for precision(s) of the distribution. |
dim |
number of variables for the distribution. |
Creates a multivariate normal distribution object of class
mvnd
that holds means
and covariance covar
of a multivariate normal distribution. If number of means or covars is less
than dim
, the values provided are expanded to fill the multivariate
distribution.
An object of class mvnd
with provided means and covariances
computed as 1/alpha
.
1 2 3 4 | make_prior(0,1,2)
make_prior(c(0,1),c(1,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.