regsen_boot-methods: Print, summarize and plot a bootstrapped breakdown point

regsen_boot-methodsR Documentation

Print, summarize and plot a bootstrapped breakdown point

Description

print() gives the point estimate and the interval regsen_boot() reported. summary() adds the analysis bootstrapped, both interval types, the BCa constants, the distribution of the replicates (their standard deviation is the bootstrap standard error) and the counts of failed and infinite replicates. plot() draws the replicates with the point estimate and the interval marked. confint() returns the interval as a matrix, recomputing it from the stored replicates when level or type differ from those of the run.

Usage

## S3 method for class 'regsensitivity_boot'
print(x, ...)

## S3 method for class 'regsensitivity_boot'
summary(object, ...)

## S3 method for class 'summary.regsensitivity_boot'
print(x, ...)

## S3 method for class 'regsensitivity_boot'
confint(object, parm, level = object$level, type = object$type, ...)

## S3 method for class 'regsensitivity_boot'
plot(x, bins = 30, base_size = 11, ...)

Arguments

x, object

A regsensitivity_boot object, or for the print() method of its summary, a summary.regsensitivity_boot object.

...

Ignored.

parm

Ignored; there is one parameter.

level

Confidence level. Defaults to the level of the run.

type

"bca" or "perc". Defaults to the interval the run reported. "bca" needs the jackknife, which a run with type = "perc" skipped.

bins

Number of histogram bins.

base_size

Base font size, passed to theme_regsen().

Details

Every value is the magnitude of the breakdown point, as printed by regsen_breakdown().

Value

confint() returns a 1 x 2 matrix. summary() returns an object of class summary.regsensitivity_boot. plot() returns a ggplot object.

Examples


data(bfg2020)
f <- avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 + log_area_2010 + lat + lon
bb <- regsen_boot(f, bfg2020, compare = c("log_area_2010", "lat", "lon"),
                  R = 99, type = "perc", seed = 1)
bb
summary(bb)
confint(bb, level = 0.9)
plot(bb)


regsensitivity documentation built on Nov. 23, 2026, 9:08 a.m.