Skip to contents

Extractors for objects returned by boot_pairs(). coef() returns the original OLS coefficients, vcov() returns the bootstrap covariance matrix (the sample covariance of the bootstrap replicates), and confint() returns bootstrap confidence intervals, optionally recomputed at a different level or type from the stored replicates.

Usage

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

# S3 method for class 'hcinfer_boot'
vcov(object, ...)

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

Arguments

object

An object returned by boot_pairs().

...

Unused.

parm

Optional coefficient names or integer positions.

level

Confidence level for confint(). Defaults to the level stored in object.

type

Interval type for confint(): "percentile", "basic", or "normal". Defaults to the type stored in object.

Value

coef() a named numeric vector; vcov() a numeric covariance matrix; confint() a tibble with columns term, conf_low, conf_high, and level.