This function samples n x muti-dimensional normal random matrix.
sim_mnormal(
num_sim,
mu = rep(0, 5),
sig = diag(5),
method = c("eigen", "chol")
)
T x k matrix
Number to generate process
Mean vector
Variance matrix
Method to compute eigen
(spectral decomposition) and chol
(cholesky decomposition).
By default, eigen
.
Consider
Lower triangular Cholesky decomposition:
Standard normal generation: