mean_ci_t

0th

Percentile

Get mean and CI for a numeric vector

Suitable for use within ggplot's ggplot2::stat_summary.

Usage
mean_ci_t(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

A data.frame with y (mean), ymin and ymax values.

Aliases
  • mean_ci_t
Examples
# NOT RUN {
set.seed(42)
df <- data.frame(x = runif(100), y = sample(c("A", "B"), 100, TRUE))
mean_ci_t(df$x)
# }
Documentation reproduced from package tadaatoolbox, version 0.16.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.