Skip to contents

Proportion of confidence intervals that contain the true effect. Optionally applies an empirical correction factor to the standard errors before constructing intervals.

Usage

sim_coverage(
  estimates,
  ses,
  true_effect = 0,
  correction_factor = 1,
  alpha = 0.05
)

Arguments

estimates

Numeric vector of point estimates.

ses

Numeric vector of standard errors.

true_effect

Scalar true effect value (default 0).

correction_factor

Scalar multiplier for SEs (default 1, no correction).

alpha

Significance level for CI width (default 0.05 for 95% CI).

Value

Scalar coverage rate.