plot_tsres: To compute and plot the residualsa and the ACF of an ARIMA...

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function allows to create three separate plots of the residuals, Partial autocorrelation (PAC) anc the count of an ARIMA model of a time series.

Usage

1
plot_tsres(ts_arima, n_degfree)

Arguments

ts_arima

A univariate time series with class 'Arima' object.

n_degfree

A number referred to the degrees of freedom for the residuals.

Value

Three plots (Residuals, ACF and count) or a character string referred to an argument error.

Examples

1
2
3
4
dataset<-data.frame('something'=c(...))
dataset_ts<-ts(dataset, ...)
arima_ts<-autoparam_tsarima(dataset_ts[,1])
plot_tsres(arima_ts, "ARIMA")

unimi-dse/9768672c documentation built on Feb. 16, 2020, 5:45 a.m.