# example in which the means are 114 vs. 101 with sDs of 14.3 and 12.5 respectively
Hedgesgp( statistics = list( m1= 101, m2= 114, s1= 12.5, s2= 14.3, n1= 12, n2= 12 ),
design = "between")
# example in a repeated-measure design
Hedgesgp( statistics = list( m1= 101, m2= 114, s1= 12.5, s2= 14.3, n= 12, rho= 0.53 ),
design = "within")
# example with a single-group design where mu is a population parameter
Hedgesgp( statistics = list( m = 101, m0 = 114, s = 12.5, n = 10 ),
design = "single")
# The results can be displayed in three modes
res <- Hedgesgp( statistics = list( m = 101, m0 = 114, s = 12.5, n = 10 ),
design = "single")
# a raw result of the Cohen's d_p and its confidence interval
res
# a human-readable output
summarize( res )
# ... and a human-readable ouptut with additional explanations
explain( res )
Run the code above in your browser using DataLab