| autoplot.boot_tgr | R Documentation |
Autoplot Method for Bootstrap TGR Objects
## S3 method for class 'boot_tgr'
autoplot(object, which = c("distribution", "ci"), ...)
object |
a |
which |
character. |
... |
additional arguments. |
A ggplot object.
if (requireNamespace("ggplot2", quietly = TRUE)) {
sim <- simulate_metafrontier(n_groups = 2, n_per_group = 50, seed = 42)
fit <- metafrontier(log_y ~ log_x1 + log_x2, data = sim$data,
group = "group", meta_type = "stochastic")
boot <- boot_tgr(fit, R = 50, seed = 1, progress = FALSE)
ggplot2::autoplot(boot)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.