rmvn_arma_scalar {BayesMRA}R Documentation

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

Description

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

Usage

rmvn_arma_scalar(a, b)

Arguments

a

a A scalar for the Gaussian full conditional distribution precision.

b

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

Examples

set.seed(111)
a <- 4
b <- rnorm(1)
sample <- rmvn_arma_scalar(a, b)


[Package BayesMRA version 1.0.0 Index]