IARsample: Simulate from an IAR Model

View source: R/RcppExports.R

IARsampleR Documentation

Simulate from an IAR Model

Description

Simulates an IAR Time Series Model.

Usage

IARsample(phi, st, n = 100L)

Arguments

phi

A coefficient of IAR model. A value between 0 and 1

st

Array with observational times.

n

Length of the output time series. A strictly positive integer.

Value

A list with the following components:

  • times Array with observation times.

  • series Array with simulated IAR data.

References

\insertRef

Eyheramendy_2018iAR

See Also

gentime

Examples


set.seed(6714)
st<-gentime(n=100)
y<-IARsample(phi=0.99,st=st, n=100)
y<-y$series
plot(st,y,type='l')

iAR documentation built on Nov. 25, 2022, 1:06 a.m.

Related to IARsample in iAR...