Qmaker_ar1cum | R Documentation |
Precision matrix of cumulative AR(1) process Produces the sparse precision matrix of a cumulative AR(1) process
Qmaker_ar1cum(n, sigma, rho)
n |
The dimension of the multivariate process. |
sigma |
The standard deviation (scaling parameter). |
rho |
The lag-one correlation coefficient of the AR(1) process. |
Returns sparse precision matrix of dimension n x n
.
Eirik Myrvoll-Nilsen, eirikmn91@gmail.com
Qsimmer, Qymaker
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.