d.r: d to r

d.rR Documentation

d to r

Description

cohen's d to correlation coefficient

Usage

d.r(d, n1, n2, dir)

Arguments

d

cohen's d

n1

cell size of group 1 (if missing, defaults correction factor a = 4, assumes n1=n2)

n2

cell size of group 2 (if missing, defaults correction factor a = 4, assumes n1=n2)

dir

if cohen's d is in absolute value, provide the empirical direction:
+1 for positive associaitons (e.g., group 1 - group 2 >= 0) and -1 for negative associations (e.g., group 1 - group 2 < 0)

k

total number of predictors

Examples

d.t(.80, 15, 20, 1, -1)
dat %>% mutate (t_from_d = d.t(cohend, stress_n, control_n, numpred, emp_dir)) -> dat


phoebehlam/michaela documentation built on Oct. 23, 2024, 4:10 p.m.