d_from_2x2: Obtain Cohen's _d_ from 2x2 Table Data (Probit...

Description Usage Arguments Value References Examples

View source: R/d_from_2x2.R

Description

This function computes Cohen's d values based on 2x2 table data using the ‘probit transformation’.

Usage

1
d_from_2x2(a, b, c, d, biasCorrect = TRUE)

Arguments

a

Numerical vector for the number of observations in group 1 with outcome 1.

b

Numerical vector for the number of observations in group 1 with outcome 2.

c

Numerical vector for the number of observations in group 2 with outcome 1.

d

Numerical vector for the number of observations in group 2 with outcome 2.

biasCorrect

Logical to indicate if the d-values should be bias-corrected. Can also be a vector.

Value

A numeric vector of Cohen's d values.

References

Rosenthal, R. (1994). Parametric measures of effect size. In H. Cooper & L. V. Hedges (Eds.), The handbook of research synthesis (1st ed., pp. 231-244). New York: Russell Sage Foundation.

Sanchez-Meca, J., Marin-Martinez, F., & Chacon-Moscoso, S. (2003). Effect-size indices for dichotomized outcomes in meta-analysis. Psychological Methods, 8(4), 448-467.

Examples

1
d_from_2x2(a=c(5,12), b=c(35,70), c=c(4,7), d=c(36,70))

wviechtb/transformer documentation built on Jan. 10, 2020, 11:56 a.m.