| summary.fwb {fwb} | R Documentation |
Summarize fwb Output
Description
summary() creates a regression summary-like table that displays the bootstrap estimates, their empirical standard errors, and their confidence intervals, which are computed using fwb.ci().
Usage
## S3 method for class 'fwb'
summary(
object,
conf = 0.95,
ci.type = "bc",
p.value = FALSE,
index = 1L:ncol(object$t),
...
)
Arguments
object |
an |
conf |
the desired confidence level. Default is .95 for 95% confidence intervals. |
ci.type |
the type of confidence interval desired. Allowable options include |
p.value |
|
index |
the index or indices of the position of the quantity of interest in |
... |
ignored. |
Value
A summary.fwb object, which is a matrix with the following columns:
-
Estimate: the statistic estimated in the original sample -
Std. Error: the standard deviation of the bootstrap estimates -
CI {L}%andCI {U}%, the upper and lower confidence interval bounds computed using the argument toci.type.
When p.value = TRUE, two additional columns, z value and Pr(>|z|) are included containing the z-statistic and p-value for each computed statistic.
See Also
fwb() for performing the fractional weighted bootstrap; fwb.ci() for computing multiple confidence intervals for a single bootstrapped quantity
Examples
set.seed(123)
data("infert")
fit_fun <- function(data, w) {
fit <- glm(case ~ spontaneous + induced, data = data,
family = "quasibinomial", weights = w)
coef(fit)
}
fwb_out <- fwb(infert, fit_fun, R = 199, verbose = FALSE)
# Basic confidence interval for both estimates
summary(fwb_out, ci.type = "basic")
# Just for "induced" coefficient; p-values requested
summary(fwb_out, index = "induced", p.value = TRUE)