cohens_d: Calculate Cohen's d

Description Usage Arguments

View source: R/cohens_d.R

Description

Calculate Cohen's d from the input to a T-test. Assign the input vectors you would input into a t.test() function into this function. This function will n turn calculate Cohen's d. NOTE: this function works only for an independent samples T-test (for now).

Usage

1
2
3
CohensD <- cohens_d(x = data$x, y = data$y)
CohensD <- cohens_d(x = rnorm(n = 20, mean = 5, sd = 1),
                    y = rnorm(n = 20, mean = 6, sd = 0.5))

Arguments

x

vector or column with observations (numeric or integer)

y

vector or column with observations (numeric or integer)


norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.