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.

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

See also

Author

Andri Signorell andri@signorell.net

Examples

x <- do.call(rbind, 
             tapply(d.pizza$delivery_min, 
                    d.pizza$area, MeanCI))
SumCI(x)
#>      sum   lwr.ci   upr.ci 
#> 78.47279 76.79179 80.15379