Convert a table with the number of cases and row marginal sums into several effect size measures
es_from_2x2_sum( n_cases_exp, n_exp, n_cases_nexp, n_nexp, table_2x2_to_cor = "tetrachoric", reverse_2x2 )
n_cases_exp
: number of cases/events in the exposed groupn_exp
: total number of participants in the exposed groupn_cases_nexp
: number of cases/events in the non exposed groupn_nexp
: total number of participants in the non exposed grouptable_2x2_to_cor
: formula used to obtain a correlation coefficient from the contigency table (see details).reverse_2x2
: a logical value indicating whether the direction of generated effect sizes should be flipped.This function estimates and converts between several effect size measures.
natural effect size measure | OR + RR + NNT |
converted effect size measure | D + G + R + Z |
required input data | See 'Section 7. Contingency (2x2) table or proportions' |
https://metaconvert.org/input.html |
This function uses the number of cases in both the exposed and non-exposed groups and the total number of participants exposed and non-exposed to recreate a 2x2 table. Then relies on the calculations of the es_from_2x2
function.
es_from_2x2_sum(n_cases_exp = 10, n_exp = 40, n_cases_nexp = 25, n_nexp = 47)
Useful links