es_from_paired_f_pval {metaConvert} | R Documentation |
Convert two paired ANOVA f p-value of two independent groups into several effect size measures
Description
Convert two paired ANOVA f p-value of two independent groups into several effect size measures
Usage
es_from_paired_f_pval(
paired_f_pval_exp,
paired_f_pval_nexp,
n_exp,
n_nexp,
r_pre_post_exp,
r_pre_post_nexp,
smd_to_cor = "viechtbauer",
reverse_paired_f_pval
)
Arguments
paired_f_pval_exp |
P-value of the paired ANOVA F of the experimental/exposed group. |
paired_f_pval_nexp |
P-value of the paired ANOVA F of the non-experimental/non-exposed group. |
n_exp |
number of participants in the experimental/exposed group. |
n_nexp |
number of participants in the non-experimental/non-exposed group. |
r_pre_post_exp |
pre-post correlation in the experimental/exposed group |
r_pre_post_nexp |
pre-post correlation in the non-experimental/non-exposed group |
smd_to_cor |
formula used to convert the |
reverse_paired_f_pval |
a logical value indicating whether the direction of generated effect sizes should be flipped. |
Details
This function converts the p-values of two paired F-test obtained from two independent groups value into a Cohen's d (D) and Hedges' g (G) (table 12.2 in Cooper). Odds ratio (OR) and correlation coefficients (R/Z) are then converted from the Cohen's d.
To estimate the Cohen's d, the following formulas are used (Cooper et al., 2019): This function converts a Student's t-test value into a Cohen's d (table 12.2 in Cooper).
paired\_t\_exp = qt(\frac{paired\_f\_pval\_exp}{2}, df = n\_exp - 1) * \sqrt{\frac{2 * (1 - r_pre_post_exp)}{n_exp}}
paired\_t\_nexp = qt(\frac{paired\_f\_pval\_nexp}{2}, df = n\_nexp - 1) * \sqrt{\frac{2 * (1 - r_pre_post_nexp)}{n_nexp}}
To estimate other effect size measures,
calculations of the es_from_paired_t()
are applied.
Value
This function estimates and converts between several effect size measures.
natural effect size measure | D + G |
converted effect size measure | OR + R + Z |
required input data | See 'Section 16. Paired: Paired F- or t-test' |
https://metaconvert.org/html/input.html | |
References
Cooper, H., Hedges, L.V., & Valentine, J.C. (Eds.). (2019). The handbook of research synthesis and meta-analysis. Russell Sage Foundation.
Examples
es_from_paired_f_pval(paired_f_pval_exp = 0.4, paired_f_pval_nexp = 0.01, n_exp = 19, n_nexp = 22)