Learn R Programming

tidycomm (version 0.0.1)

cohens_d: Compute Cohen's d

Description

Computes the effect size estimate Cohen's d for two sets of numerical values

Usage

cohens_d(x, y, pooled_sd = TRUE, na.rm = TRUE)

Arguments

x

a (non-empty) numeric vector of data values.

y

a (non-empty) numeric vector of data values.

pooled_sd

a logical indicating whether to use the pooled standard deviation in the calculation of Cohen's d. Defaults to TRUE.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds. Defaults to TRUE.

Value

a dbl

See Also

Other t-test: compute_t_test, t_test