cohen_d_to_r | R Documentation |
Convert d (standardized mean difference or Cohen's d) to r (correlation), as illustrated in Borenstein et al. (2009, p. 48, ISBN: 978-0-470-05724-7)
cohen_d_to_r(d = NULL, n1 = NULL, n2 = NULL, d_var = NULL)
d |
Cohen's d (the input can be a vector of values) |
n1 |
sample size in the first of two group (the input can be a vector of values) |
n2 |
sample size in the second of two group (the input can be a vector of values) |
d_var |
(optional argument) variance of d (the input can be a vector of values). If this argument receives an input, variance of r will be returned as well. |
the output will be a vector of correlation values (and variances of r if the argument d_var received an input)
## Not run:
cohen_d_to_r(1)
cohen_d_to_r(d = 1:3)
cohen_d_to_r(d = 1:3, n1 = c(100, 200, 300), n2 = c(50, 250, 900))
cohen_d_to_r(1.1547)
cohen_d_to_r(d = 1.1547, d_var = .0550)
cohen_d_to_r(d = 1:2, d_var = 1:2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.