cohensD_Paired: Cohen's D for paired data

Description Usage Arguments Value Examples

View source: R/cohensD_Paired.R

Description

This function calculates Cohen's D for paired data. The formula was taken from the rstatix package.

Usage

1
cohensD_Paired(meanD, sigmaD)

Arguments

meanD

Mean of the differences between measurements

sigmaD

SD of the differences between measurements

Value

Cohen's D for paired data. Adapted from rstatix

Examples

1
2
3
4
5
6
7
before <- rnorm(1000, 10, 2)
after <- rnorm(1000,20, 4)
D <- before - after
meanD <- mean(D)
sigmaD <- sd(D)
cohensD_Paired(meanD = meanD,
               sigmaD = sigmaD)

LionelRohner/LRTools documentation built on Dec. 17, 2021, 1:10 a.m.