sd_pooled: Pooled Standard Deviation
Description
The Pooled Standard Deviation is a weighted average of standard deviations
for two or more groups, with more "weight" given to larger sample sizes.
Usage
sd_pooled(x, y = NULL, data = NULL, verbose = TRUE)mad_pooled(x, y = NULL, data = NULL, verbose = TRUE)
Arguments
x
A formula, a numeric vector, or a character name of one in data
.
y
A numeric vector, a grouping (character / factor) vector, a or a
character name of one in data
. Ignored if x
is a formula.
data
An optional data frame containing the variables.
verbose
Toggle warnings and messages on or off.
Value
Numeric, the pooled standard deviation.
Examples
Run this code# NOT RUN {
sd_pooled(mpg ~ am, data = mtcars)
# }
Run the code above in your browser using DataLab