Description Usage Arguments Value Examples
View source: R/hw06Functions.R
Calculate Effect Size
1 | effectSize(x, g)
|
x |
vector of values of length n |
g |
vector of group designations (0 or 1) of length n, corresponding to vector x |
effect size, or Cohen's d. formula: d = |mean0 - mean1| / sqrt((sd0^2 + sd1^2)/2)
1 2 | effectSize(c(1.42, 8.10, 9.22), c(0,1,1))
effectSize(c(1.42, 8.10, 9.22, 20.92, 5.67, 0.45), c(0,0,1,1,0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.