spatialEco (version 2.0-2)

effect.size: Cohen's-d effect size

Description

Cohen's-d effect size with pooled sd for a control and experimental group

Usage

effect.size(y, x, pooled = TRUE, conf.level = 0.95)

Value

An effect.size class object with x, y and a data.frame with columns for effect size, lower confidence interval, lower confidence interval. The row names of the data frame represent the levels in y

Arguments

y

A character or factor vector

x

A numeric vector, same length as y

pooled

Pooled or population standard deviation (TRUE/FALSE)

conf.level

Specified confidence interval. Default is 0.95

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org>

References

Cohen, J., (1988) Statistical Power Analysis for the Behavioral Sciences (second ed.). Lawrence Erlbaum Associates.

Cohen, J (1992) A power primer. Psychological Bulletin 112(1):155-159

Examples

Run this code
 ( es <- effect.size(iris$Species, iris$Sepal.Length) )
   plot(es)

Run the code above in your browser using DataLab