BIARsample | R Documentation |
Simulates a BIAR Time Series Model
BIARsample(n, st, phiR, phiI, delta1 = 0, delta2 = 0, rho = 0)
n |
Length of the output bivariate time series. A strictly positive integer. |
st |
Array with observational times. |
phiR |
Autocorrelation coefficient of BIAR model. A value between -1 and 1. |
phiI |
Crosscorrelation coefficient of BIAR model. A value between -1 and 1. |
delta1 |
Array with the measurements error standard deviations of the first time series of the bivariate process. |
delta2 |
Array with the measurements error standard deviations of the second time series of the bivariate process. |
rho |
Contemporary correlation coefficient of BIAR model. A value between -1 and 1. |
The chosen phiR and phiI values must satisfy the condition $|phiR + i phiI| < 1$.
A list with the following components:
y Matrix with the simulated BIAR process.
t Array with observation times.
Sigma Covariance matrix of the process.
Elorrieta_2021iAR
gentime
n=300 set.seed(6714) st<-gentime(n) x=BIARsample(n=n,phiR=0.9,phiI=0.3,st=st) plot(st,x$y[1,],type='l') plot(st,x$y[2,],type='l') x=BIARsample(n=n,phiR=-0.9,phiI=-0.3,st=st) plot(st,x$y[1,],type='l') plot(st,x$y[2,],type='l')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.