plot.nppi: Plot Stability of JAB Point Estimates

View source: R/plot.nppi.R

plot.nppiR Documentation

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 class 'nppi'
plot(x, ...)

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.

Value

No return value, called for side effects

Examples

# 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)


Alec-Stashevsky/hhjboot documentation built on Feb. 19, 2025, 11:19 a.m.