plot.nppi | R Documentation |
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.
## S3 method for class 'nppi'
plot(x, ...)
x |
An object of class |
... |
Arguments passed on to
|
No return value, called for side effects
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.