d_from_F_oneway: Obtain Cohen's _d_ from one-way F tests

Description Usage Arguments Details Value References Examples

View source: R/d_from_F_oneway.R

Description

This function converts F statistics from one-way tests to Cohen's d.

Usage

1
d_from_F_oneway(F1, n1, n2, df2, sign, bias_correct = FALSE)

Arguments

F1

A numerical vector with one or more F values.

n1, n2

A numerical vector with the sample sizes of the two groups formed by the dichotomous variable. Note that the nth element of these vectors must correspond to the nth elements of the F1 vector.

df2

A numerical vector with one or more values of degrees of freedom 2.

sign

Numerical vector to indicate the sign of the d-values (+1 or -1).

bias_correct

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

Details

The formula that is used is the following (see e.g. Thalheimer & Cook, 2002):

d= √{F (\frac{n_1 + n_2}{n_1 n_2}) (\frac{n_1 + n_2}{n_1 + n_2 - 2})}

Value

A data frame with in the first column, Cohen's d values, and in the second column, the corresponding variances.

References

Thalheimer, W., & Cook, S. (2002, August). How to calculate effect sizes from published research articles: A simplified methodology.

Borenstein, M., Hedges, L. V., Higgins, J. P. T., & Rothstein, H. R. (2009). Introduction to Meta-Analysis. Chichester, UK: John Wiley & Sons.

Examples

1
2
3
4
5
escalc::d_from_F_oneway(F1 = 2.828427,
                        n1 = 126,
                        n2 = 89,
                        sign = +1);
escalc::d_from_F_oneway

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