Learn R Programming

nortsTest (version 1.0.3)

check_plot.ts: Generic function for a visual check of residuals in time series models

Description

Generic function for a visual check of residuals in time series models, these methods are inspired in the check.residuals function provided by the forecast package.

Usage

# S3 method for ts
check_plot(y, model = " ", ...)

Value

A graph object from ggplot2

Arguments

y

a numeric vector or an object of the ts class containing a stationary time series.

model

A string with the model name.

...

Other plotting parameters to affect the plot.

Author

Asael Alonzo Matamoros

See Also

check_residuals

Examples

Run this code
y = arima.sim(100,model = list(ar = 0.3))
check_plot(y)


Run the code above in your browser using DataLab