S3 Method for objects of class 'hhj'

# S3 method for 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


# \donttest{
# 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)
#>  Pilot block length is: 3
#> Performing minimization may take some time
#> Calculating MSE for each level in subsample: 10 function evaluations required.
#>  Chosen block length: 7  After iteration: 1

#>  Chosen block length: 4  After iteration: 2

#>  Chosen block length: 7  After iteration: 3

#>  Converged at block length (l): 7


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




# }