Skip to contents

Computes the confidence interval for a set of point estimates using standard errors.

Usage

add_ci(estimates, se, alpha = 0.05)

Arguments

estimates

Numeric vector. The point estimates.

se

Numeric vector. The standard errors for each estimate.

alpha

Numeric. The significance level to use for the interval (default is 0.05).

Value

A data.frame with the following columns:

  • estimate: The original point estimates.

  • ci_lower: The lower bound of the computed confidence interval.

  • ci_upper: The upper bound of the computed confidence interval.

Examples

if (FALSE) { # \dontrun{
estimates <- c(3, 5, 7)
se <- c(0.5, 0.7, 0.6)
add_ci(estimates, se)
} # }