calculate_confidence_intervals: Calculate confidence intervals from a boot_strap object

View source: R/bootstrap_measures.R

calculate_confidence_intervalsR Documentation

Calculate confidence intervals from a boot_strap object

Description

Calculate confidence intervals from a boot_strap object

Usage

calculate_confidence_intervals(
  boot_strap,
  quantiles = c(lower95 = 0.025, lower80 = 0.1, median = 0.5, upper80 = 0.9, upper95 =
    0.975),
  type = "direct"
)

Arguments

boot_strap

A boot_strap object

quantiles

A named vector of quantile bounds, each between 0 and 1

type

One of either "direct", "relative", or "both". Use "direct" to calculate confidence intervals around all measured KPIs for each group separately, use "relative" to calculate the confidence intervals around the ratios of pair-wise combinations of all measured KPIs for all groups, and "both" to calculate both.

Value

Returns a data frame with quantiles for all groups/comparisons defined in type, for all measures in the boot_strap object.


nivr/bootabc documentation built on April 23, 2024, 5:02 p.m.