Defining a known time series in R

36 Views Asked by At

Is it possible to define time series like $X_t = 0.2X_{t-1}-0.48X_{t-2}+Z_t $, $Z_t \sim WN(0,\sigma^2)$ in R and then analyze it - for example plot its ACF and PACF?

I can only find information on how to turn data into a time series and analyze that.

1

There are 1 best solutions below

1
On

This is AR(2) model, to simulate this model you may use the following function.

For ACF and PACF use function acf.