d.computation: Compute Cohen's d

Description Usage Arguments Details Value Author(s) Examples

View source: R/d.computation.R

Description

Compute Cohen's d

Usage

1
d.computation(y, group, short = TRUE, target.group = NULL)

Arguments

y

The y variable (quantitative) on which group differences are to be assessed.

group

The grouping variable

short

Logical. If true, it will only output the value of d. Otherwise, it also outputs the mean differences, the pooled variance, and the pair of means.

target.group

The group to reference.

Details

Cohen's d is used to assess average group differences, regardless of sample size. It is consequently a measure of effect size.

Value

If short=FALSE, the mean differences, the pooled variance, and the pair of means. Otherwise, just the d.

Author(s)

Dustin Fife

Examples

1
2
data(iris)
d.computation(iris$Petal.Width, iris$Species, short=FALSE)

selection documentation built on May 30, 2017, 5:27 a.m.