check_res: Visualization of the Residuals of a Time Series Model
Description
Provides a visualization of the residuals of a time series model.
That includes a time series plot of the residuals, and the plots of the
autocorrelation function (acf) and histogram of the residuals
Usage
check_res(ts.model, lag.max = 36)
Arguments
ts.model
A time series model (or forecasted) object, support any model from the forecast package with a residuals output
lag.max
The maximum number of lags to display in the residuals' autocorrelation function plot
# NOT RUN {library(forecast)
data(USgas)
# Create a modelfit <- auto.arima(USgas, lambda = BoxCox.lambda(train))
# Check the residuals of the modelcheck_res(fit)
# }