Estimate the trend using the AIC best polynomial regression model.
polreg(y, order, plot = TRUE, …)
a univariate time series.
order of polynomial regression.
logical. If TRUE (default), 'y' and 'trend' are plotted.
TRUE
y
trend
further arguments to be passed to plot.polreg.
An object of class "polreg", which is a list with the following elements:
"polreg"
MAICE (minimum AIC estimate) order.
residual variance of the model with order \(M\). (\(0 \leq M \leq\) order \(+ 1\))
order
AIC of the model with order \(M\). (\(0 \leq M \leq\) order \(+ 1\))
AIC - minimum AIC.
regression coefficients \(A(I,M)\) with order \(M\).
(\(1 \leq M \leq\) order \(+ 1\), \(1 \leq I \leq M\))
trend component.
Kitagawa, G. (2010) Introduction to Time Series Modeling. Chapman & Hall/CRC.
# NOT RUN { # The daily maximum temperatures for Tokyo data(Temperature) polreg(Temperature, order = 7) # Wholesale hardware data data(WHARD) y <- log10(WHARD) polreg(y, order = 15) # }
Run the code above in your browser using DataLab