Learn R Programming

s20x (version 3.4.0)

getTslmDiagnosticData: Get tslm diagnostic data

Description

Collect fitted values, residuals, and time values for `tslm` diagnostic plots.

Usage

getTslmDiagnosticData(object, residualType = "normalised")

Value

A list with `fitted`, `residuals`, and `time` components, each sorted into time order so that autocorrelation is read in the correct sequence.

Arguments

object

a fitted `tslm` object.

residualType

residual type requested for diagnostic plots.