Random-Effects Meta-Analysis of Mash Pairwise Contrasts
Source:R/mash_wrapper.R
meta_analysis_per_cell.RdFor each cell type (condition), gathers all pairwise contrast effect
sizes and standard errors involving that cell, then runs a
DerSimonian–Laird random-effects meta-analysis per condition.
Intended to be run on the output of fit_mash_contrast.
Arguments
- effect_sizes
Numeric matrix (features x conditions) of contrast effect sizes. Column names must follow the pattern
mean_contrast_<cellA>_vs_<cellB>.- se_values
Numeric matrix (features x conditions) of contrast standard errors. Must have the same dimensions and column names as
effect_sizes.- se_cutoff
Numeric; minimum SE below which a condition is excluded from the meta-analysis for a given feature (default 0).
Value
A tibble with columns:
- cell
Cell type name.
- condition
Original pairwise contrast name (without prefix).
- meta_pvalue
P-value from the random-effects meta-analysis.
- meta_effect
Pooled absolute effect size estimate.
- meta_se
Standard error of the pooled estimate.
- tau2
Between-study variance estimate.
- I2
Heterogeneity measure (proportion of variance due to between-study variance), in [0, 1].