powered by
plotacfthemp plots the ACF and PACF of a theoretical ARMA model and the empirical ACF and PACF of an observed series.
plotacfthemp
plotacfthemp(y, ar = numeric(0), ma = numeric(0), lag.max = 20, titre = "")
No values
time series, a ts object
ts
numeric vector of AR coefficients
numeric vector of MA coefficients
integer, Maximum lag required.
a string of characters for the title
Yves Aragon and Thibault Laurent
This function uses the ARMAacf and acf functions to compute theoritical and empirical ACF and PACF
ARMAacf
acf
set.seed(951) ya <- arima.sim(n=200, list(ma = c(-0.3, 0.6)), sd = sqrt(1.5)) plotacfthemp(ya, ma=c(-0.3,0.6), titre="MA(2)")
Run the code above in your browser using DataLab