chickadee » statistics » cohens-d

(cohens-d mean-1 sd-1 n-1 mean-2 sd-2 n-2 #:alpha)procedure

Cohen's d: the difference mean-1 - mean-2 divided by the pooled standard deviation sqrt(((n1 - 1) sd1^2 + (n2 - 1) sd2^2) / (n1 + n2 - 2)). The arguments are the sample means, sample standard deviations and sizes of the two groups, in the same order as for t-test-two-sample. The interval is d -+ z SE, with SE = sqrt((n1 + n2) / (n1 n2) + d^2 / (2 (n1 + n2))).

> (cohens-d 10 2 20 8 2 20)
1.0
0.34260809456756
1.65739190543244