
Comparing DA, AD, SWADA, and CAMS
Source:vignettes/comparing-da-ad-swada.Rmd
comparing-da-ad-swada.RmdThis article follows vignette("cams"). It contrasts CAMS
with DA, AD, and SWADA on the same prepared REACT des
object (Panaro
et al. 2026; WHO
Rapid Evidence Appraisal for COVID-19 Therapies (REACT) Working Group et
al. 2020). Those three are different constructions,
not alternative CAMS likelihoods.
DA pools each subgroup then subtracts; AD pools within-trial contrasts; SWADA applies a common weighting principle so DA’s subgroup series can align with AD’s interaction (Panaro et al. 2026). CAMS uses information fractions and orthogonal blocks (Panaro et al. 2025).
REACT steroids (mixed subgroup design)
Prepare the same design as in vignette("cams"):
library(interactmeta)
library(metafor)
#> Loading required package: Matrix
#> Loading required package: metadat
#> Loading required package: numDeriv
#>
#> Loading the 'metafor' package (version 5.2-1). For an
#> introduction to the package please type: help(metafor)
steroids_es <- escalc(
measure = "OR",
ai = treat.events, bi = treat.total - treat.events,
ci = cont.events, di = cont.total - cont.events,
data = steroids
)
des <- ifrac(steroids_es, reference = "Non-IMV")The design object matches vignette("cams"): same
reference, big_var placeholders, and optional
contrast / include_interaction via
[?ifrac]. Remap trial or modifier columns with
trial, subgroup, or modifier when
names differ from study / level.
sens <- interactmeta::sensitivity(
des,
reference = "Non-IMV",
method = "REML"
)[?sensitivity] fits DA, AD, SWADA, and CAMS on one table
by default. Trim with constructions = c("da", "ad"), remap
columns via trial / subgroup, or pass an
existing [interactmeta] from cams() instead of
a data frame. Arguments in ... (for example
method, tau.prior, silent) are
forwarded to each construction fitter.
Interaction
Under default random-effects weights on this mixed table, DA need not match AD, SWADA, and CAMS, which pool the same within-trial contrasts for here.
interactmeta::compare(
sens,
estimand = "interaction",
exponentiate = TRUE,
type = "Overall"
)
#> # A tibble: 4 × 6
#> approach contrast estimate se ci.lb ci.ub
#> <fct> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 DA IMV - Non-IMV (DA) 1.96 0.857 0.830 4.62
#> 2 AD IMV - Non-IMV 3.86 2.02 1.38 10.8
#> 3 SWADA IMV - Non-IMV 3.86 2.02 1.38 10.8
#> 4 CAMS IMV - Non-IMV 3.86 2.02 1.38 10.8compare() on a sensitivity object accepts
estimand = "modifiers" or "combined" as well
as "interaction". Use type = "Prediction" for
prediction rows where supported, exponentiate = TRUE on
log-scale outcomes, and see [?compare] for interval
formatting. Passing multiple fits directly (without
sensitivity()) still works for pairwise CAMS
comparisons.
Study weights (SWADA principle)
interactmeta::compare_weights(sens$fits$da, sens$fits$ad, sens$fits$swada)
#> # A tibble: 7 × 6
#> trial da_reference da_nonref ad swada_reference swada_nonref
#> <chr> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 CAPE COVID 0.103 0.133 0.161 0.161 0.161
#> 2 CoDEX 0.0000155 0.265 0.0000275 0.0000275 0.0000275
#> 3 COVID STEROID 0.116 0.0134 0.0688 0.0688 0.0688
#> 4 DEXA-COVID 19 0.0000155 0.0267 0.0000275 0.0000275 0.0000275
#> 5 RECOVERY 0.0000155 0.384 0.0000275 0.0000275 0.0000275
#> 6 REMAP-CAP 0.610 0.133 0.604 0.604 0.604
#> 7 Steroids-SARI 0.170 0.0448 0.166 0.166 0.166The table has class interactmeta_compare_weights and a
plot() method (xlim rescales the weight axis).
For CAMS trial-level information fractions on the same studies, use
compare_ifrac() instead of
compare_weights().
IV-only trials can dominate DA weights for the IMV series while
carrying little weight in AD, SWADA, and CAMS interaction pooling (see
vignette("cams") on mixed
steroids designs).
What CAMS adds
Contribution curves and grey shrinkage forests require a CAMS fit
([?cams]).

Beyond ylim, the contribution view accepts
exponentiate, at / ifrac
(reporting fraction), and ggplot styling via
[?plot.interactmeta]. Forest and heterogeneity views use
the same plot() method with other type values
(see vignette("cams")).
Complete-table illustration (respire_age)
On a complete subgroup table (every trial reports both strata), DA and AD can still disagree when inverse-variance weights differ. RESPIRE age strata (Panaro et al. 2026):
sens_respire <- interactmeta::sensitivity(
respire_age,
reference = "<65",
modifier = "subgroup",
method = "REML",
constructions = c("da", "ad", "swada", "cams")
)
interactmeta::compare(
sens_respire,
estimand = "interaction",
exponentiate = TRUE,
type = "Overall"
)
#> # A tibble: 4 × 6
#> approach contrast estimate se ci.lb ci.ub
#> <fct> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 DA >=65 - <65 (DA) 1.15 0.547 0.451 2.92
#> 2 AD >=65 - <65 1.19 0.455 0.563 2.52
#> 3 SWADA >=65 - <65 1.19 0.455 0.563 2.52
#> 4 CAMS >=65 - <65 1.19 0.455 0.563 2.52respire_age uses study and
subgroup rather than level;
sensitivity() remaps via
modifier = "subgroup". The explicit
constructions vector is optional when you want all four
fits; priors and method in ... behave as in
the steroids run above.
Each construction fit prints in the same layout as a CAMS fit: trials
and modifier levels, method, the estimand, and a parameter
matrix. summary() adds heterogeneity (with
and
for metafor fits), per-trial data and weights, and the modifier-level
and interaction tables. For SWADA it also checks collapsibility:
summary(sens_respire$fits$swada)
#> Summary of 'interactmeta_swada' object: SWADA principle (same weighting across DA and AD).
#>
#> 2 trials, 2 subgroups (reference: <65):
#> RESPIRE 1, RESPIRE 2
#> Subgroups: <65, >=65
#>
#> method: REML
#>
#> REML model results:
#> tau_gamma mu[<65] mu[>=65] gamma_SWADA
#> estimate 0.4 -0.43 -0.26 0.17
#> se NA 0.18 0.18 0.38
#> zval NA -2.40 -1.42 0.46
#> pval NA 0.02 0.16 0.65
#> ci.lb 0.0 -0.78 -0.61 -0.57
#> ci.ub 10.0 -0.08 0.10 0.92
#>
#> (quoted intervals are Wald confidence intervals; tau intervals from confint.rma();
#> pval: two-sided Wald z-test.)
#>
#> heterogeneity:
#> parameter estimate 95% CI tau^2 Q df p(Q) I^2
#> tau[interaction] 0.40 (0.00, 10.00) 0.162 2.24 1 0.13 55.4%
#>
#> trial data (trials per level: <65 2, >=65 2, both 2):
#> trial y[<65] se[<65] y[>=65] se[>=65] g se(g)
#> RESPIRE 1 -0.49 0.29 -0.71 0.24 -0.22 0.37
#> RESPIRE 2 -0.37 0.22 0.17 0.27 0.55 0.35
#>
#> modifier-level effects:
#> subgroup type estimate se Overall 95% CI
#> <65 Overall -0.43 0.18 (-0.78, -0.08)
#> >=65 Overall -0.26 0.18 (-0.61, 0.10)
#>
#> interaction:
#> interaction estimate se Overall 95% CI Prediction 95% CI
#> >=65 - <65 0.17 0.38 (-0.57, 0.92) (-0.76, 1.11)
#>
#> Collapsible: DA interaction == AD interaction (mu[>=65] - mu[<65] = 0.17; gamma_SWADA = 0.17).Continue from vignette("cams")
on your own data or browse vignette("worked-examples").