CIARsample | R Documentation |
Simulates a CIAR Time Series Model
CIARsample(n, phiR, phiI, st, rho = 0L, c = 1L)
n |
Length of the output time series. A strictly positive integer. |
phiR |
Real part of the coefficient of CIAR model. A value between -1 and 1. |
phiI |
Imaginary part of the coefficient of CIAR model. A value between -1 and 1. |
st |
Array with observational times. |
rho |
Correlation between the real and the imaginary part of the process. A value between -1 and 1. |
c |
Nuisance parameter corresponding to the variance of the imaginary part. |
The chosen phiR and phiI values must satisfy the condition $|phiR + i phiI| < 1$.
A list with the following components:
yArray with the simulated real part of the CIAR process.
t Array with observation times.
Sigma Covariance matrix of the process.
Elorrieta_2019iAR
gentime
n=300 set.seed(6714) st<-gentime(n) x=CIARsample(n=n,phiR=0.9,phiI=0,st=st,c=1) plot(st,x$y,type='l') x=CIARsample(n=n,phiR=-0.9,phiI=0,st=st,c=1) plot(st,x$y,type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.