polreg | R Documentation |
Estimate the trend using the AIC best polynomial regression model.
polreg(y, order, plot = TRUE, ...)
y |
a univariate time series. |
order |
maximum order of polynomial regression. |
plot |
logical. If |
... |
graphical arguments passed to |
An object of class "polreg"
, which is a list with the following
components:
order.maice |
MAICE (minimum AIC estimate) order. |
sigma2 |
residual variance of the model with order |
aic |
AIC of the model with order |
daic |
AIC - minimum AIC. |
coef |
regression coefficients ( |
trend |
trend component. |
Kitagawa, G. (2020) Introduction to Time Series Modeling with Applications in R. Chapman & Hall/CRC.
# The daily maximum temperatures for Tokyo
data(Temperature)
polreg(Temperature, order = 7)
# Wholesale hardware data
data(WHARD)
y <- log10(WHARD)
polreg(y, order = 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.