cholQsample: Sample from the multivariate normal distribution with...

View source: R/BayesGLM2_Bayes_utils.R

cholQsampleR Documentation

Sample from the multivariate normal distribution with Cholesky(Q)

Description

Sample from the multivariate normal distribution with Cholesky(Q)

Usage

cholQsample(n, mu, cholQ)

Arguments

n

number of samples

mu

mean vector

cholQ

Cholesky decomposition of the precision (found via Matrix::Cholesky(Q))

Value

An n \times p matrix of samples from the MVN distribution, where p is the length of mu.


BayesfMRI documentation built on April 4, 2025, 1:58 a.m.