Skip to contents

Main workflow

Fit a CAMS model with cams(), extract the main effects, and create the principal visualizations.

cams()
Contribution-adjusted meta-analysis for treatment effect modification
ifrac()
Information fraction within each trial and pooled across trials
interactions()
Subgroup-difference (interaction) effects
modifiers()
Modifier-level treatment effects
combined()
Combined-population treatment effect
heterogeneity()
Between-trial heterogeneity from a CAMS fit
shrinkage()
Shrinkage (trial-level) effects from a CAMS fit
reporting_if_draws()
Monte Carlo draws of a reporting information fraction
fit_reporting_if_draws()
Sample reporting IF from the fit (outer API with marginal tau MC)
forestplot() forestplot.interactmeta() forestplot.interactmeta_da() forestplot.interactmeta_ad() forestplot.interactmeta_swada() forest.interactmeta_da() forest.interactmeta_ad() forest.interactmeta_swada() forest.interactmeta()
Forest plot for a fitted model
plot(<interactmeta>)
CAMS model fit (interactmeta)

Alternative analyses

Separate constructions, plus the Bayesian wrapper.

da()
Estimate a treatment-by-subgroup interaction using the Difference-of-Averages construction
ad()
Estimate a treatment-by-subgroup interaction using the Average-Difference construction
swada()
Apply the Same Weighting Across Different Analyses principle
print(<interactmeta_da>) print(<interactmeta_ad>) print(<interactmeta_swada>) summary(<interactmeta_da>) summary(<interactmeta_ad>) summary(<interactmeta_swada>) print(<summary.interactmeta_construction>)
Print and summarize DA, AD, and SWADA fits (bayesmeta-style)

Comparison and sensitivity

sensitivity()
Fit multiple meta-analysis constructions on the same data
compare()
Compare estimands across a sensitivity analysis or multiple fits
compare_forestplots()
Lay out several full forest plots side by side (or in a grid)
compare_heterogeneity()
Side-by-side heterogeneity summaries
compare_weights()
Trial contribution weights from DA, AD, and SWADA

Diagnostics and inspection

predict_cams_by_if()
CAMS subgroup and overall effects on an information-fraction grid
observed_effects()
Observed trial-level treatment-effect estimates and variances
standardized_trial_effects()
Trial-specific effects standardized to the overall IF
cams_trial_quantities() cam_trial_quantities()
Trial-level CAMS quantities \(\pi_j\), \(m_j\), \(g_j\)
shrinkage_diagnostics()
Diagnostic table for trial-specific CAMS shrinkage
subgroup_long()
Reshape wide subgroup data to long format

Additional plots

plot_modifiers()
Comparable forest of modifier-level treatment effects
forestplot_height()
Recommended figure dimensions for a forest plot
forestplot_default_width_height_ratio()
Default width-to-height ratio for recommended forest export size

Data conversion

log_hr_from_ci()
Log-hazard ratio and SE from a reported HR confidence interval
hr_ci_from_log()
Reconstruct an HR confidence interval from yi and sei

Styling and reporting

interactmeta_palette() subgroupmeta_palette()
Colour palette for interactmeta figures
interactmeta_theme_report() subgroupmeta_theme_report()
Report / dashboard theme for interactmeta ggplot figures
interactmeta_capability_matrix()
Analysis / inference / implementation capabilities

Interoperability

Re-exported helpers from other packages, including escalc().

interactmeta-reexports escalc tidy traceplot
Re-exported helpers from dependencies

Data

age
Age subgroup data for contribution-aware meta-analysis
edss
Subgroup relapse data for contribution-aware meta-analysis
il6
IL-6 antagonist COVID-19 mortality data (REACT meta-analysis)
steroids
Corticosteroid COVID-19 mortality data (REACT meta-analysis)
respire_age
RESPIRE age-subgroup hazard ratios (ciprofloxacin DPI)
respire_sex
RESPIRE sex-subgroup hazard ratios (ciprofloxacin DPI)

Methods

print(<interactmeta>)
Print a CAMS fit (bayesmeta-style)
summary(<interactmeta>) print(<summary.interactmeta>)
Summarize a CAMS fit (bayesmeta-style)
fitted(<interactmeta>)
Linear predictor table for a CAMS fit
as.data.frame(<interactmeta>)
Parameter table of a CAMS fit
tidy(<interactmeta>)
Tidy all CAMS estimands from a fitted model
tidy(<interactmeta_subgroup_effects>)
Tidy a interactmeta_subgroup_effects object
tidy(<interactmeta_interaction_effects>)
Tidy a interactmeta_interaction_effects object
tidy(<interactmeta_combined_effect>)
Tidy an interactmeta_combined_effect object
tidy(<interactmeta_heterogeneity>)
Tidy a interactmeta_heterogeneity object
plot(<interactmeta_compare>) plot(<interactmeta_compare_interactions>) plot(<interactmeta_compare_subgroups>) plot(<interactmeta_compare_combined>) plot(<interactmeta_compare_heterogeneity>) plot(<interactmeta_compare_ifrac>) plot(<interactmeta_compare_weights>)
Plot a comparison table as a forest of estimates
traceplot(<interactmeta>)
Rubin-style shrinkage trace plots for a CAMS fit
print(<interactmeta_overall_ifrac>)
Print overall information fraction summary
plot(<interactmeta>)
CAMS model fit (interactmeta)
coef(<interactmeta_subgroup_effects>) coef(<interactmeta_interaction_effects>) coef(<interactmeta_combined_effect>) coef(<interactmeta_construction_subgroups>) coef(<interactmeta_construction_interaction>) confint(<interactmeta_subgroup_effects>) confint(<interactmeta_interaction_effects>) confint(<interactmeta_combined_effect>) confint(<interactmeta_construction_subgroups>) confint(<interactmeta_construction_interaction>) as.data.frame(<interactmeta_subgroup_effects>) as.data.frame(<interactmeta_interaction_effects>) as.data.frame(<interactmeta_combined_effect>) as.data.frame(<interactmeta_construction_subgroups>) as.data.frame(<interactmeta_construction_interaction>) coef(<interactmeta_overall_ifrac>) confint(<interactmeta_overall_ifrac>)
Extract point estimates and intervals as base R objects
credint()
Credible intervals for Bayesian effect objects

About

interactmeta-package interactmeta
Meta-analysis of treatment effect modification from modifier-level aggregate data