plot.hhj: Plot MSE Function for HHJ Algorithm

View source: R/plot.hhj.R

plot.hhjR Documentation

Plot MSE Function for HHJ Algorithm

Description

S3 Method for objects of class 'hhj'

Usage

## S3 method for class 'hhj'
plot(x, iter = NULL, ...)

Arguments

x

an object of class 'hhj'

iter

a vector of hhj() iterations to plot. NULL. All iterations are plotted by default.

...

Arguments passed on to base::plot

y

the y coordinates of points in the plot, optional if x is an appropriate structure.

Value

No return value, called for side effects

Examples



# Generate AR(1) time series
sim <- stats::arima.sim(list(order = c(1, 0, 0), ar = 0.5),
                        n = 500, innov = rnorm(500))

# Generate 'hhj' class object of optimal block length for series
hhj <- hhj(sim, sub_sample = 10)

## S3 method for class 'hhj'
plot(hhj)



blocklength documentation built on March 18, 2022, 7:12 p.m.