es_from_beta_unstd function

Convert an unstandardized regression coefficient and the standard deviation of the dependent variable into several effect size measures

Convert an unstandardized regression coefficient and the standard deviation of the dependent variable into several effect size measures

es_from_beta_unstd( beta_unstd, sd_dv, n_exp, n_nexp, smd_to_cor = "viechtbauer", reverse_beta_unstd )

Arguments

  • beta_unstd: an unstandardized regression coefficient value (binary predictor, no other covariables in the model)
  • sd_dv: standard deviation of the dependent variable
  • 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 cohen_d value into a coefficient correlation (see details).
  • reverse_beta_unstd: 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 measureD + G
converted effect size measureOR + R + Z
required input dataSee 'Section 13. (Un-)Standardized regression coefficient'
https://metaconvert.org/input.html

Details

This function estimates a Cohen's d (D) and Hedges' g (G) from an unstandardized linear regression coefficient (coming from a model with only one binary predictor), and the standard deviation of the dependent variable. Odds ratio (OR) and correlation coefficients (R/Z) are then converted from the Cohen's d.

The formula used to obtain the Cohen's d is :

N=n_exp+n_nexp N = n\_exp + n\_nexp sd_pooled=sd_dv2(N1)unstd_beta2n_expn_nexpNN2 sd\_pooled = \sqrt{\frac{sd\_dv^2 * (N - 1) - unstd\_beta^2 * \frac{n\_exp * n\_nexp}{N}}{N - 2}} cohen_d=unstd_betasd_pooled cohen\_d = \frac{unstd\_beta}{sd\_pooled}

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

Examples

es_from_beta_unstd(beta_unstd = 2.1, sd_dv = 0.98, n_exp = 20, n_nexp = 22)

References

Lipsey, M. W., & Wilson, D. B. (2001). Practical meta-analysis. Sage Publications, Inc.

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

Useful links