es_from_means_sd function

Convert means and standard deviations of two independent groups into several effect size measures

Convert means and standard deviations of two independent groups into several effect size measures

es_from_means_sd( mean_exp, mean_sd_exp, mean_nexp, mean_sd_nexp, n_exp, n_nexp, smd_to_cor = "viechtbauer", reverse_means )

Arguments

  • mean_exp: mean of participants in the experimental/exposed group.
  • mean_sd_exp: standard deviation of participants in the experimental/exposed group.
  • mean_nexp: mean of participants in the non-experimental/non-exposed group.
  • mean_sd_nexp: standard deviation of participants in the non-experimental/non-exposed group.
  • n_exp: number of participants in the experimental/exposed group.
  • n_nexp: number of participants in the non-experimental/non-exposed group.
  • smd_to_cor: formula used to convert the generated cohen_d value into a coefficient correlation (see details).
  • reverse_means: a logical value indicating whether the direction of the generated effect sizes should be flipped.

Returns

This function estimates and converts between several effect size measures.

natural effect size measureMD + D + G
converted effect size measureOR + R + Z
required input dataSee 'Section 9. Means and dispersion (crude)'
https://metaconvert.org/input.html

Details

This function first computes a Cohen's d (D), Hedges' g (G) and mean difference (MD) from the means and standard deviations of two independent groups. Odds ratio (OR) and correlation coefficients (R/Z) are then converted from the Cohen's d.

To estimate a mean difference (formulas 12.1-12.6 in Cooper):

md=mean_expmean_nexp md = mean\_exp - mean\_nexp md_se=mean_sd_exp2n_exp+mean_sd_nexp2n_nexp md\_se = \sqrt{\frac{mean\_sd\_exp^2}{n\_exp} + \frac{mean\_sd\_nexp^2}{n\_nexp}} md_ci_lo=mdmd_seqt(.975,df=n_exp+n_nexp2) md\_ci\_lo = md - md\_se * qt(.975, df = n\_exp + n\_nexp - 2) md_ci_up=md+md_seqt(.975,df=n_exp+n_nexp2) md\_ci\_up = md + md\_se * qt(.975, df = n\_exp + n\_nexp - 2)

To estimate a Cohen's d the following formulas are used (formulas 12.10-12.18 in Cooper):

mean_sd_pooled=(n_exp1)sd_exp2+(n_nexp1)sd_nexp2n_exp+n_nexp2 mean\_sd\_pooled = \sqrt{\frac{(n\_exp - 1) * sd\_exp^2 + (n\_nexp - 1) * sd\_nexp^2}{n\_exp+n\_nexp-2}} cohen_d=mean_expmean_nexpmean_sd_pooled cohen\_d = \frac{mean\_exp - mean\_nexp}{mean\_sd\_pooled} cohen_d_se=(n_exp+n_nexp)n_expn_nexp+cohen_d22(n_exp+n_nexp) cohen\_d\_se = \frac{(n\_exp+n\_nexp)}{n\_exp*n\_nexp} + \frac{cohen\_d^2}{2(n\_exp+n\_nexp)} cohen_d_ci_lo=cohen_dcohen_d_seqt(.975,df=n_exp+n_nexp2) cohen\_d\_ci\_lo = cohen\_d - cohen\_d\_se * qt(.975, df = n\_exp + n\_nexp - 2) cohen_d_ci_up=cohen_d+cohen_d_seqt(.975,df=n_exp+n_nexp2) cohen\_d\_ci\_up = cohen\_d + cohen\_d\_se * qt(.975, df = n\_exp + n\_nexp - 2)

To estimate other effect size measures , calculations of the es_from_cohen_d() are applied.

Examples

es_from_means_sd( n_exp = 55, n_nexp = 55, mean_exp = 2.3, mean_sd_exp = 1.2, mean_nexp = 1.9, mean_sd_nexp = 0.9 )

References

Cooper, H., Hedges, L.V., & Valentine, J.C. (Eds.). (2019). The handbook of research synthesis and meta-analysis. Russell Sage Foundation.

  • Maintainer: Corentin J. Gosling
  • License: GPL (>= 3)
  • Last published: 2024-11-17

Useful links

    Downloads (last 30 days):