create_cMVN_sampler | R Documentation |
Set up a function for direct sampling from a constrained multivariate normal distribution
create_cMVN_sampler(
D = NULL,
Q = NULL,
update.Q = FALSE,
R = NULL,
r = NULL,
eps1 = 0,
eps2 = 0,
chol.control = chol_control(perm = TRUE)
)
D |
factor of precision matrix Q such that Q=D'D. |
Q |
precision matrix. |
update.Q |
whether to update (D and) Q for each draw. |
R |
equality restriction matrix. |
r |
rhs vector for equality constraints |
eps1 |
scalar parameter to control numerical robustness against singularity of Q. |
eps2 |
scalar parameter associated with the constraint part to control numerical robustness. |
chol.control |
options for Cholesky decomposition, see |
An environment with precomputed quantities and a method 'draw' for sampling from a multivariate normal distribution subject to equality constraints.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.