| erri_bootstrap | R Documentation |
Uses a residual bootstrap of the pre-shock counterfactual model and propagates counterfactual uncertainty to components and ERRI.
erri_bootstrap(object, R = 499L, block_length = 1L, level = 0.95,
seed = NULL)
## S3 method for class 'erri_bootstrap'
print(x, digits = 2, ...)
object |
An object returned by |
R |
Number of bootstrap replications; at least 20. |
block_length |
Positive integer residual-block length. |
level |
Confidence level. |
seed |
Optional integer seed. |
x |
An |
digits |
Number of digits to display. |
... |
Additional arguments, currently unused. |
An object of class erri_bootstrap containing replicate
estimates and percentile confidence intervals.
fit <- erri(erri_example_data(), "year", "income", 2020, "region")
boot <- erri_bootstrap(fit, R = 49, seed = 1)
boot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.