plot.nppi {blocklength} | R 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 |
... |
Arguments passed on to
|
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)
[Package blocklength version 0.2.2 Index]