SumCI: Add Up Partial Confidence Intervals to a Total CI

View source: R/SumCI.R

SumCIR Documentation

Add Up Partial Confidence Intervals to a Total CI

Description

Starting with a response variable that obtains different confidence intervals (CI) when calculated with different explanatory variables, all the values of the response variable should be added up. This function returns the CI for the sum.

Usage

SumCI(x)

Arguments

x

a matrix with 3 columns, containing the estimate in the first column followed by the lower and the upper confidence interval .

Value

a vector with the sum and the lower, upper confidence bound of the confidence interval

Author(s)

Andri Signorell andri@signorell.net

References

https://stats.stackexchange.com/questions/223924/how-to-add-up-partial-confidence-intervals-to-create-a-total-confidence-interval

See Also

BinomCI,

Examples

x <- do.call(rbind, 
             tapply(d.pizza$delivery_min, 
                    d.pizza$area, MeanCI))
SumCI(x)


AndriSignorell/DescTools documentation built on Dec. 1, 2024, 5:13 a.m.