Qsimmer | R Documentation |
Efficient Gaussian simulation Simulate from multivariate Gaussian distribution efficiently by using sparse precision matrix
Qsimmer(nsims, Q, muvek)
nsims |
The number of samples to be produced. |
Q |
The precision matrix, should be sparse. |
muvek |
The mean vector. |
Returns matrix with nsims samples of length equal to nrow(Q)
.
Eirik Myrvoll-Nilsen, eirikmn91@gmail.com
n=100
sigma=1
rho=0.8
Q = Qmaker_ar1cum(n,sigma,rho)
nsims = 1000
muvek = seq(1,5,length.out=n)
samples = Qsimmer(nsims,Q,muvek)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.