Learn R Programming

powerAnalysis (version 0.2.1)

ES.t.two: Calculating effect size (Cohen's d) of independent two-sample t test

Description

Calculating effect size (Cohen's d) of independent two-sample t test

Usage

ES.t.two(m1 = NULL, m2 = NULL, sd1 = NULL, sd2 = NULL, n1 = NULL, n2 = NULL, t = NULL, se1 = NULL, se2 = NULL, df = NULL, alternative = c("two.sided", "one.sided"))

Arguments

m1
mean of sample 1
m2
mean of sample 2
sd1
standard deviation of sample 1
sd2
standard deviation of sample 2
n1
number of observations in sample 1
n2
number of observations in sample 2
t
t statistic
se1
standard error of sample 1
se2
standard error of sample 2
df
degree of freedom
alternative
The test is two sided or one sided

See Also

ES.t.one

ES.t.paired

Examples

Run this code
## mean, sd, n -> d
ES.t.two(m1=13.5,m2=5.5,sd1=4.1833,sd2=3.02765,n1=14,n2=10)

## mean se, n -> d
ES.t.two(m1=13.5,m2=5.5,se1=1.118034,se2=0.9574271,n1=14,n2=10)

## t and n -> d
ES.t.two(n1=14,n2=10,t=5.4349)

## t, df and n -> d
ES.t.two(t = 5.4349, df = 21.982,n1=14,n2=10)

## t and df -> d (assume n1=n2)
ES.t.two(t = 5.4349, df = 21.982)

Run the code above in your browser using DataLab