| boot_tgr | R Documentation |
Computes bootstrap confidence intervals for TGR estimates from a fitted metafrontier model. Supports both parametric (residual resampling) and nonparametric (case resampling) bootstraps.
boot_tgr(
object,
R = 999,
type = c("parametric", "nonparametric"),
level = 0.95,
ci_type = c("percentile", "bca"),
seed = NULL,
progress = TRUE,
ncores = 1L,
...
)
object |
a |
R |
integer. Number of bootstrap replications (default 999). |
type |
character. |
level |
numeric. Confidence level (default 0.95). |
ci_type |
character. |
seed |
optional integer seed for reproducibility. |
progress |
logical. Show progress bar (default |
ncores |
integer. Number of CPU cores for parallel bootstrap
(default 1, sequential). Requires the |
... |
additional arguments passed to |
An object of class "boot_tgr" containing:
R x n matrix of bootstrapped TGR values
original TGR estimates
n x 2 matrix of observation-level confidence intervals
data frame of group-level mean TGR intervals
number of successful replications
requested number of replications
bootstrap type used
CI type used
confidence level
sim <- simulate_metafrontier(n_groups = 2, n_per_group = 100,
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)
print(boot)
confint(boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.