ci_mean: Mean and Confidence Interval

Description Usage Arguments Note Examples

View source: R/utils.R

Description

Mean and Confidence Interval

Usage

1
ci_mean(x, level = 0.9)

Arguments

x

numeric vector

level

confidence level

Note

Internal function. Not supposed to be called directly

Examples

1
2
3
4
5
6
7
8
     stopifnot(all.equal(ci_mean(NA_real_), c(NA_real_, NA_real_, NA_real_)))
     stopifnot(all.equal(ci_mean(1), c(lower = NA_real_, mean = 1, upper = NA_real_)))
     stopifnot(all.equal(
         ci_mean(1:9, 0.95),
         c(lower = 2.934942, mean = 5.000000, upper = 7.065058), 
         tolerance = 0.0001)
     )
     

BENMMI documentation built on Oct. 23, 2020, 8:24 p.m.