plot.L0TFinvfix {L0TFinv}R Documentation

Plot L0TFinvfix or L0TFinvopt object

Description

Plots a summary of L0TFinvfix or L0TFinvopt

Usage

## S3 method for class 'L0TFinvfix'
plot(x, type = NULL, k = NULL, ...)

## S3 method for class 'L0TFinvopt'
plot(x, type = "mse", k = NULL, ...)

Arguments

x

The output of L0TFinvfix or L0TFinvopt

type

The values are taken as c("mse", "sic", "bic", "yhat"). If type is "mse", plot the mse as it changes with change points. The same applies to "sic" and "bic". If type is "yhat", plot the trend of the estimated values against the input data.

k

Only used for type = "yhat". The given number of change points. By default, the L0TFinvfix object outputs the estimated trend that corresponds to the fixed number of change points within the model. Conversely, the L0TFinvopt object provides the estimated trend based on the optimal change points.

...

ignore

Value

Plot the information criteria for L0TFinvfix and L0TFinvopt across an increasing number of change points or display the estimated trend with a selected change point

See Also

print.L0TFinvfix


[Package L0TFinv version 0.1.0 Index]