Learn R Programming

blocklength (version 0.2.0)

plot.nppi: Plot Stability of JAB Point Estimates

Description

S3 Method for objects of class 'nppi' This function visualizes the JAB point estimates across deletion blocks indices used to estimate variance of the NPPI algorithm.

Usage

# S3 method for nppi
plot(x, ...)

Value

No return value, called for side effects

Arguments

x

An object of class nppi, containing JAB point values.

...

Arguments passed on to base::plot

y

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

Examples

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

# Estimate the optimal block length for the sample mean
result <- nppi(data = sim, stat_function = mean, num_bootstrap = 500, m = 2)

# Use s3 method
plot(result)

Run the code above in your browser using DataLab