Description Usage Arguments Value References
Random vector generation for the truncated multivariate normal distribution using a Gibbs sampler.
1 | rtmvn_gibbs(n, p, Mean, Sigma_chol, R, a, b, z)
|
n |
number of samples to be generated |
p |
dimension of the distribution to sample |
R |
matrix of linear constraints |
a |
vector of lower bounds |
b |
vector of upper bounds |
z |
vector of initial values for the Gibbs sampler. |
a matrix of samples with each column being an idependent sample.
Li, Y., & Ghosh, S. K. (2015). Efficient sampling methods for truncated multivariate normal and student-t distributions subject to linear inequality constraints. Journal of Statistical Theory and Practice, 9(4), 712-732.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.