pclspiar | R Documentation |
Fit a periodically integrated autoregressive model.
pclspiar(x, d, p, icoef = NULL, parcoef = NULL, sintercept = FALSE,
seasonof1st = 1, weights = TRUE, itol = 1e-07, maxniter = 1000)
x |
time series. |
d |
period. |
p |
order of the model, a positive integer, see Details. |
icoef |
initial values for the periodic integration coefficients. If missing
or |
parcoef |
not used currently. |
sintercept |
if |
seasonof1st |
season of the first observation. |
weights |
if |
itol |
threshold value for the stopping criterion. |
maxniter |
maximum number of iterations. |
This function fits a periodically integrated autoregressive model
using non-linear least squares. The order of integration is one and
the order of the periodically correlated part is p - 1
. So,
p
must be greater than or equal to one.
If weights = TRUE
the non-linear optimisation is done with
weights inversely proportional to the innovation variances for the
seasons, otherwise the unweighted sum of squared residuals is
minimised.
a list currently containing the following elements:
icoef |
coefficients of the periodic integration filter. |
parcoef |
coefficients of the PAR filter. |
sintercept |
seasonal intercepts. |
sigma2hat |
innovation variances. |
Georgi N. Boshnakov
FransesB1pcts
\insertRefFransesB2pcts
\insertRefboshnakov2009genpcts
pclsdf
,
test_piar
,
fitPM
## see also the examples for fitPM()
ts1 <- window(dataFranses1996[ , "CanadaUnemployment"],
start = c(1960, 1), end = c(1987, 4))
pclspiar(ts1, 4, p = 1, sintercept = TRUE)
pclspiar(ts1, 4, p = 2, sintercept = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.