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)
)
An environment with precomputed quantities and a method 'draw' for sampling from a multivariate normal distribution subject to equality constraints.
factor of precision matrix Q such that Q=D'D.
precision matrix.
whether to update (D and) Q for each draw.
equality restriction matrix.
rhs vector for equality constraints \(R'x = r\), where \(R'\) denotes the transpose of R.
scalar parameter to control numerical robustness against singularity of Q.
scalar parameter associated with the constraint part to control numerical robustness.
options for Cholesky decomposition, see chol_control
.