rmvn_arma: A function for sampling from conditional multivariate normal...

Description Usage Arguments Examples

View source: R/RcppExports.R

Description

A function for sampling from conditional multivariate normal distributions with mean A^-1b and covariance matrix A^-1.

Usage

1
rmvn_arma(A, b)

Arguments

A

A A d \times d matrix for the Gaussian full conditional distribution precision matrix.

b

b A d vector for the Gaussian full conditional distribution mean.

Examples

1
2
3
4
set.seed(111)
A <- diag(4)
b <- rnorm(4)
sample <- rmvn_arma(A, b)

BayesMRA documentation built on Aug. 18, 2020, 5:08 p.m.