SWADA (Same Weighting Across Different Analyses) is a consistency
principle, not a statistical model parallel to da(), ad(), or cams().
da() (Difference of Averages) and ad() (Average Difference) are
different constructions (Panaro, Röver & Friede 2026) and can assign
studies different effective contributions.
SWADA requires the same study weights for the subgroup-mean analyses and
for the within-trial interaction, so that
\(\mu_B - \mu_A = \gamma\).
Usage
swada(
data,
reference,
modifier = NULL,
trial = "study",
subgroup = "level",
yi = "yi",
vi = "vi",
weights = c("interaction"),
method = "REML",
...
)Arguments
- data
A data frame with
trial,modifier,yi, andvicolumns.- reference
Reference level of the
modifiercolumn; must be one of the observed levels.- modifier
Modifier column holding the two levels, one of which is the
referencelevel (default"level", else a legacy"subgroup"column). A name that is not a column ofdatais an error.- trial, yi, vi
Column names.
- subgroup
Deprecated alias for
modifier; supplying it warns.- weights
Weighting scheme. Currently
"interaction"(recommended).- method
Estimator for the interaction RE-MA (
"REML"default, or"ML"). SWADA is frequentist only (metafor).- ...
Passed to
ad()/metafor::rma()for the interaction fit.
Details
The default (weights = "interaction") is Interaction RE-weights SWADA
(Panaro, Röver & Friede 2026): take the ad() weights
\(w_j \propto 1/(v_{g j}+\hat\tau_g^2)\) and apply them to both
subgroup series. Under that common vector the DA interaction is
algebraically identical to AD: \(\sum_j w_j(y_{Bj}-y_{Aj})=\sum_j w_j g_j\).
The interaction estimate itself is the AD/rma of \(g_j\); SWADA does not
introduce a third interaction model.
Reported quantities: the common-weight modifier-level means
\(\mu_A = \sum_j w_j y_{Aj}\) and \(\mu_B = \sum_j w_j y_{Bj}\), with
\(\mathrm{se}(\mu_g) = \sqrt{\sum_j w_j^2 \sigma_{gj}^2}\) (normalized
\(w_j\)), and \(\gamma_{\mathrm{SWADA}} = \sum_j w_j g_j =
\mu_B - \mu_A\), with \(\tau_\gamma\) from the interaction RE-MA. See
print.interactmeta_swada() for the console report.
References
Panaro RV, Röver C, Friede T (2026). Subgroup comparisons within and across studies in meta-analysis. Research Synthesis Methods (in press). arXiv:2508.15531. https://doi.org/10.48550/arXiv.2508.15531
