# 1. Computations to Calculate Effect Sizes:
# For example, suppose the primary study reported a t-test
# value for differences between 2 groups. Then, running:
tes(1.74, 30, 31)
# where the reported t-value = 1.74, treatment sample
# size = 30, and the control/comparison sample size = 31 will
# output effect sizes of d, g, r, z, and log odds ratio.
# The variances will also be computed for these estimates.
# Note: If only the total sample size is reported simply split
# the number in half for entry into the function.
Run the code above in your browser using DataLab