regsensitivity-accessors: Extract results from a sensitivity analysis

regsensitivity-accessorsR Documentation

Extract results from a sensitivity analysis

Description

Accessors for the quantities most often reported, so that scripts do not depend on how the result objects are laid out internally.

Usage

breakdown_point(x, ...)

## S3 method for class 'regsensitivity'
breakdown_point(x, signed = FALSE, ...)

## S3 method for class 'regsensitivity_boot'
breakdown_point(x, signed = FALSE, ...)

## S3 method for class 'regsensitivity_multi'
breakdown_point(x, ...)

breakdown_frontier(x, ...)

## S3 method for class 'regsensitivity'
breakdown_frontier(x, signed = FALSE, ...)

identified_set(x, ...)

## S3 method for class 'regsensitivity'
identified_set(x, ...)

sensitivity_params(x, ...)

## S3 method for class 'regsensitivity'
sensitivity_params(x, ...)

## S3 method for class 'regsensitivity'
coef(object, ...)

## S3 method for class 'regsensitivity'
nobs(object, ...)

Arguments

x, object

A result object.

...

Ignored.

signed

Logical. The breakdown point is reported as a magnitude, which is the number quoted as "the breakdown point". With signed = TRUE an Oster breakdown keeps the sign that records the direction of selection; see regsen_breakdown().

Details

  • breakdown_point() returns the breakdown point. For regsen_bounds() output it is a scalar (NA when the sweep does not define one); for regsen_breakdown() output it is one value per point of the frontier, in the order of breakdown_frontier(); for regsen_boot() output, the point estimate; for regsen_multi() output, one value per treatment, named by treatment.

  • breakdown_frontier() returns the frontier as a data frame whose first column is named after the parameter swept (cbar, beta, rxbar, r2long or maxovb) and whose second is breakdown.

  • identified_set() returns the bounds of a regsen_bounds() sweep: one row per point, with the sensitivity parameters and bmin, bmax.

  • sensitivity_params() returns the sensitivity parameters the analysis was run at, as a named list.

  • coef() returns the short- and medium-regression coefficients on the treatment, the two estimates the sensitivity analysis starts from, and nobs() the number of observations used.

Value

See Details.

See Also

as.data.frame.regsensitivity() for the full results table.

Examples

data(bfg2020)
f <- avgrep2000to2016 ~ tye_tfe890_500kNI_100_l6 + log_area_2010 + lat + lon
w1 <- c("log_area_2010", "lat", "lon")

bnds <- regsen_bounds(f, bfg2020, compare = w1, cbar = 0.1)
breakdown_point(bnds)
head(identified_set(bnds))
coef(bnds)

bk <- regsen_breakdown(f, bfg2020, compare = w1, cbar = c(0, 0.5, 1))
breakdown_frontier(bk)
breakdown_point(bk)

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