Calculates confidence interval of a vector of numbers.
Usage
mean_ci(x, distance_only = TRUE, ci = 0.95)
Value
Distance of limit or confidence interval (as named vector).
Arguments
x
Numeric vector.
distance_only
Logical. If TRUE (default), the function returns
only the distance between the mean and either confidence interval limit.
Otherwise returns the confidence interval (i.e., both limits).