mean_se_corrected: Corrected calculation of mean and standard error

View source: R/utils-stats.R

mean_se_correctedR Documentation

Corrected calculation of mean and standard error

Description

Adapted from ggplot2::mean_se. Corrects the denominator for the variance with N - 1.

Usage

mean_se_corrected(x, mult = 1)

Arguments

x

Numeric vector.

mult

Number of multiples of standard error.

Value

A dataframe with three columns:

y

The mean.

ymin

The mean minus the multiples of the standard error.

ymax

The mean plus the multiples of the standard error.

Examples

x <- rnorm(100)
mean_se_corrected(x)

yjunechoe/penngradlings documentation built on Sept. 6, 2024, 8:13 p.m.