trend_season | R Documentation |
Estimate a trend and seasonaliyt for a time series. Available functions:
trend_season
to generate an estimate
print
to print the estimate
summary
to summarize the etsimate result
plot
to plot the time series, its estimation and the residuals
coef
to extract the coefficients if a seasonality estimation was done
residuals
to extract the residuals of the model
fitted
to the fitted values
trend_season(t, ...) ## Default S3 method: trend_season( t, trend = c("constant", "linear", "exponential"), season = c("none", "additive", "multiplicative"), ... ) ## S3 method for class 'trend_season' print(x, ...) ## S3 method for class 'trend_season' summary(object, ...) ## S3 method for class 'trend_season' plot(x, y, which = 1, ...)
t |
ts: time series object |
... |
unused |
trend |
character: trend method, either |
season |
character: seasonality method, either |
x, object |
trend_season: estimated time series |
y |
unused |
which |
integer: what to plot, |
trend_season
returns a trend_season
object with
call
the function call
ts
the input time series
trend
the trend estimation (ts
object)
trend.residuals
the residuals of the trend estimation (ts
object)
season
the trend and season estimation (ts
object)
season.residuals
the residuals of the trend and season estimation (ts
object)
coefficients
the coefficients used in the seasonality estimation
residuals
the residuals of the model
fitted.values
the fitted values of the model
tts <- trend_season(austres, "linear") print(tts) summary(tts) plot(tts) plot(tts, which=2) residuals(tts) fitted(tts) coef(tts) # if NULL then no seasonality was estimated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.