make_prior: Create Prior Distribution

Description Usage Arguments Details Value Examples

View source: R/blm.R

Description

Creates a prior distribution for a blm object

Usage

1

Arguments

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.

Details

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.

Value

An object of class mvnd with provided means and covariances computed as 1/alpha.

Examples

1
2
3
4
  make_prior(0,1,2)
 
  make_prior(c(0,1),c(1,2))
  

manschmi/blm documentation built on May 21, 2019, 11:25 a.m.