Learn R Programming

L0TFinv (version 0.1.0)

plot.L0TFinvfix: Plot L0TFinvfix or L0TFinvopt object

Description

Plots a summary of L0TFinvfix or L0TFinvopt

Usage

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

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

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

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

See Also

print.L0TFinvfix