cohens_d: Cohen's d for paired (dependent) and unpaired (independent)...

Description Usage Arguments Value Examples

View source: R/cohens-d.R

Description

Cohen's d for paired (dependent) and unpaired (independent) samples

Usage

1
cohens_d(group_a, group_b, paired = FALSE, na.rm = FALSE)

Arguments

group_a

Numeric vector. This group represents baseline/control, observed variable, Pre-test in the paired design, or "practical" measure

group_b

Numeric vector. This group represents experimental, predicted variable, Post-test in the paired design, or "criterion" measure

paired

Paired groups? Default is FALSE

na.rm

Should missing values be removed? Default is FALSE. With paired=TRUE, NA removal is NOT pairwise and involves NA removal from the difference score and group_a

Value

Cohen's d

Examples

1
cohens_d(rnorm(100), rnorm(100))

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.