Description Usage Arguments Details Examples
This function will give you a confidence interval around a difference and its associated cohen's d
1 | differences(mean1, mean2, sd1, sd2, n1, n2, alpha = 0.95)
|
mean1 |
mean 1 |
mean2 |
mean 2 |
sd1 |
sd 1 |
sd2 |
sd 2 |
n1 |
sample size 1 |
n2 |
sample size 2 |
alpha |
alpha level |
formula for d = (mu1 - mu2) / sigma where sigma = sqrt ( a / b ) = pooled standard deviation where a = (n-1) x s1 x s1 + (n-2) x s2 x s2 where b = n1 + n2 - 2
also: t = ( mean(x1) - mean(x2) ) / (sigma * sqrt(1/n1 + 1/n2)) so t = d * 1 / sqrt(1/n1 + 1/n2) so d = t * sqrt(1/n1 + 1/n2)
1 | differences(mean1, mean2, sd1, sd2, n1, n2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.