Effect sizes complement p-values: they answer “how big is the effect?” rather than “is there an effect at all?”. MORIE exposes the standard families used in carceral, public-health, and sociolegal research.
library(rmorie)
set.seed(7)
group_a <- rnorm(60, mean = 0.0)
group_b <- rnorm(60, mean = 0.6)
d <- morie_cohens_d(group_a, group_b)
d
#> [1] -0.5043227Cohen’s d expresses the difference between two means in pooled standard-deviation units. Conventional benchmarks: 0.2 small, 0.5 medium, 0.8 large.
tab <- matrix(c(20, 10, 30,
15, 25, 35), nrow = 2, byrow = TRUE)
v <- morie_cramers_v(tab)
v
#> [1] 0.209657Cramer’s V scales the chi-square statistic to a 0–1 association measure for contingency tables. It is particularly useful for the provincial-vs-federal Mandela-rate cross-comparisons in MRM.
Omega-squared is a less-biased effect-size estimator than eta-squared for a one-way ANOVA design.
For a binomial proportion, MORIE exposes Wilson, Clopper–Pearson exact, and Wald CIs. Wilson is the default and is what we recommend in published papers (it has better small-sample coverage than Wald).
morie_proportion_ci(35, 100) # Wilson, 95% CI
#> $p_hat
#> [1] 0.35
#>
#> $ci_lower
#> [1] 0.2636425
#>
#> $ci_upper
#> [1] 0.4474556
morie_proportion_ci(35, 100, method = "exact") # Clopper-Pearson
#> $p_hat
#> [1] 0.35
#>
#> $ci_lower
#> [1] 0.2572938
#>
#> $ci_upper
#> [1] 0.4518494
morie_proportion_ci(35, 100, method = "wald") # Wald
#> $p_hat
#> [1] 0.35
#>
#> $ci_lower
#> [1] 0.2565157
#>
#> $ci_upper
#> [1] 0.4434843The E-value is the minimum strength of association that an unmeasured confounder would need on both treatment and outcome to fully explain away an observed risk ratio.
morie_cohens_d and
morie_cramers_v, see the survey-weighted
vignette.causal-inference
vignette.