Skip to contents

Bootstrap confidence intervals for the intercept and regression coefficients of a fast AME fit.

Usage

# S3 method for class 'boot_ame'
confint(
  object,
  parm = NULL,
  level = 0.95,
  ci_type = c("percentile", "basic"),
  which = c("all", "beta", "vc", "a", "b", "U", "V"),
  ...
)

Arguments

object

a boot_ame object.

parm

character vector of parameter names, or integer indices. If NULL (default), all coefficients are returned.

level

confidence level (default 0.95).

ci_type

interval type: "percentile" (default) uses the replicate quantiles directly (for a block bootstrap, those at the expanded percentile levels of ame_als_bootstrap) and matches the intervals reported by summary() and tidy() on the same fit; "basic" reflects the replicate quantiles about the point estimate (\(2\hat\theta - q\)), which corrects first-order bias and can be preferable for binary and Poisson fits on small samples.

which

which uncertainty channel to return: "all" (default, intercept + regression coefficients + variance components + sender effects

  • receiver effects + multiplicative U/V), or a single channel: "beta", "vc", "a", "b", "U", "V".

...

ignored.

Value

A matrix with one row per parameter and lower/upper bound columns. The rows of the U and V columns whose singular values are not separated from a neighbour's, of a coefficient or variance component whose replicates are not centred on it (coef_uncentred, vc_uncentred), and of a parameter the bootstrap returns no interval for (withheld), are the analytic Wald intervals of the fit (se_source); see ame_als_bootstrap.