plotacfthemp | R Documentation |
plotacfthemp
plots the ACF and PACF of a theoretical ARMA model and the empirical ACF and PACF of an observed series.
plotacfthemp(y, ar = numeric(0), ma = numeric(0), lag.max = 20, titre = "")
y |
time series, a |
ar |
numeric vector of AR coefficients |
ma |
numeric vector of MA coefficients |
lag.max |
integer, Maximum lag required. |
titre |
a string of characters for the title |
This function uses the ARMAacf
and acf
functions to
compute theoritical and empirical ACF and PACF
No values
Yves Aragon and Thibault Laurent
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)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.