Last chance! 50% off unlimited learning
Sale ends in
For an ARMA model, estimates a 3--parameter
Student-
ARMA.studentt.ff(order = c(1, 0),
zero = c("scale", "df"),
cov.Reg = FALSE,
llocation = "identitylink",
lscale = "loglink",
ldf = "logloglink",
ilocation = NULL,
iscale = NULL,
idf = NULL)
An object of class "vglmff"
(see vglmff-class
)
to be used by VGLM/VGAM modelling functions, e.g.,
vglm
or vgam
.
Two--entries vector, non--negative. The order $u$ and $v$ of the ARMA model.
Same as studentt3
.
Logical. If covariates are entered, Should these be
included in the ARMA model as a Reg
ressand? Default is FALSE,
then only embedded in the linear predictors.
Same as studentt3
.
Victor Miranda
The normality assumption for time series analysis is relaxed to handle
heavy--tailed data, giving place to the ARMA model with shift-scaled
Student-
For a univariate time series, say
where
Currently only centered Student--t distributions are handled. Hence, the non--centrality parameter is set to zero.
The linear/additive predictors are
ARIMAXff
,
studentt
,
vglm
.
### Estimate the parameters of the errors distribution for an
## AR(1) model. Sample size = 50
set.seed(20180218)
nn <- 250
y <- numeric(nn)
ncp <- 0 # Non--centrality parameter
nu <- 3.5 # Degrees of freedom.
theta <- 0.45 # AR coefficient
res <- numeric(250) # Vector of residuals.
y[1] <- rt(1, df = nu, ncp = ncp)
for (ii in 2:nn) {
res[ii] <- rt(1, df = nu, ncp = ncp)
y[ii] <- theta * y[ii - 1] + res[ii]
}
# Remove warm up values.
y <- y[-c(1:200)]
res <- res[-c(1:200)]
### Fitting an ARMA(1, 0) with Student-t errors.
AR.stut.er.fit <- vglm(y ~ 1, ARMA.studentt.ff(order = c(1, 0)),
data = data.frame(y = y), trace = TRUE)
summary(AR.stut.er.fit)
Coef(AR.stut.er.fit)
# \donttest{
plot(ts(y), col = "red", lty = 1, ylim = c(-6, 6), main = "Plot of series Y with Student-t errors")
lines(ts(fitted.values(AR.stut.er.fit)), col = "blue", lty = 2)
abline( h = 0, lty = 2)
# }
Run the code above in your browser using DataLab