Skip to contents

Computes confidence intervals using either Wald-based intervals (from the Hessian standard errors) or bootstrap percentile intervals. Wald intervals are the default and require that the model was fit with calc_se = TRUE. Bootstrap intervals require a boot_sir result and tend to be more reliable when the Hessian is ill-conditioned.

Usage

# S3 method for class 'sir'
confint(object, parm = NULL, level = 0.95, boot = NULL, ...)

Arguments

object

A fitted sir object from sir.

parm

Character vector of parameter names or integer indices to include. If NULL (default), returns intervals for all parameters.

level

Confidence level between 0 and 1. Default is 0.95.

boot

Optional boot_sir object from boot_sir. When provided, percentile intervals from the bootstrap distribution are used instead of Wald intervals.

...

Additional arguments (unused).

Value

A matrix with one row per parameter and columns for the lower and upper bounds, labeled by percentage (e.g., "2.5 %" and "97.5 %").

See also

boot_sir for bootstrap inference, vcov.sir for the variance-covariance matrix.