Confidence Intervals

confint_t(x, alpha = 0.05, na.rm = TRUE)

confint_norm(x, alpha = 0.05, na.rm = TRUE)

Arguments

x

A Numeric vector.

alpha

Alpha, default is 0.05.

na.rm

If TRUE (default), missing values are dropped.

Value

numeric of length one (size of CI in one direction).

Examples

set.seed(42) df <- data.frame(x = runif(100), y = sample(c("A", "B"), 100, TRUE)) confint_t(df$x)
#> [1] 0.05991281
set.seed(42) df <- data.frame(x = runif(100), y = sample(c("A", "B"), 100, TRUE)) confint_norm(df$x)
#> [1] 0.01762341