Description Usage Arguments Value Examples
This function calculates Cohen's D, an effect size measure. If sample sizes are not equal use the unbiased modifier.
| 1 | cohensD(meanA, meanB, sdA, sdB, nA, nB, unbiased = F, verbose = F)
 | 
| meanA | Mean of Group A | 
| meanB | Mean of Group B | 
| sdA | SD of Group A | 
| sdB | SD of Group B | 
| nA | Sample size of Group A | 
| nB | Sample size of Group B | 
| unbiased | If set to FALSE the sample size will be assumed to be equal | 
| verbose | Extra printed information | 
Cohen's D
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | GroupA <- rnorm(1000,10, 2)
GroupB <- rnorm(1000,20, 4)
meanGroupA <- mean(GroupA)
meanGroupB <- mean(GroupB)
sigmaGroupA <- sd(GroupA)
sigmaGroupB <- sd(GroupB)
cohensD(meanA = meanGroupA,
        meanB = meanGroupB,
        sdA = sigmaGroupA,
        sdB = sigmaGroupB,
        nA = 1000, nB = 1000,
        unbiased = TRUE,
        verbose = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.