d_from_or: Obtain Cohen's _d_ from an Odds Ratio and its Confidence...

Description Usage Arguments Value References Examples

View source: R/d_from_or.R

Description

This function computes Cohen's d values based on an odds ratio using either the ‘normal’ or the ‘logistic’ transformation.

Usage

1
d_from_or(or, lb, ub, ci = 95, dist = "normal")

Arguments

or

Numerical vector for the odds ratios.

lb

Numerical vector for the lower bound of the confidence intervals.

ub

Numerical vector for the upper bound of the confidence intervals.

ci

Scalar between 0 and 100 to indicate the confidence interval width (default is 95). Can also be a vector.

dist

Character string to indicate the distribution to assume for the underlying data. Either "normal" (the default) or "logistic". Can also be a vector.

Value

A numeric vector of Cohen's d values.

References

Chinn, S. (2000). A simple method for converting an odds ratio to effect size for use in meta-analysis. Statistics in Medicine, 19(22), 3127-3131.

Cox, D. R., & Snell, E. J. (1989). Analysis of binary data (2nd ed.). London: Chapman & Hall.

Examples

1
2
d_from_or(or=c(1.29, 1.71), lb=c(0.32, 0.64), ub=c(5.19, 4.61))
d_from_or(or=c(1.29, 1.71), lb=c(0.32, 0.64), ub=c(5.19, 4.61), dist="logistic")

wviechtb/escalc documentation built on Jan. 9, 2020, 4:14 p.m.