interactmeta 0.1.0
New features
-
tidy()method forinteractmetafits: one long export table across interaction, modifier, combined, and heterogeneity estimands. -
plot(fit, type = ...)routes contribution (default), heterogeneity, and forest plots. -
sensitivity()andcompare()for construction sensitivity analyses. -
print()andsummary()forda(),ad(), andswada()fits now use thecams()layout. Output covers trials, modifier levels, and the reference level;method, engine, and the estimand; priors (Bayesian); and a metafor- or bayesmeta-style parameter matrix.summary()adds heterogeneity (with / for metafor fits), per-trial data and weights, and the modifier-level / interaction tables. Construction fits now store$engine. For Bayesian DA / AD,heterogeneity()now reports the native bayesmeta median and interval, plus mean and sd, at the requestedprob.
Performance
-
cams()defaults toprecompute = FALSEandlazy_latent = TRUE: fit returns after the bayesmeta blocks and DIRECT support, without warming marginal caches or per-trial latent convolves.print(),summary(), andtidy()build reporting on first use; passprecompute = TRUEfor the previous eager behaviour. -
fit_args = list(n_support = …)is forwarded to bothbmrandbayesmetaasn.supportto reduce quadrature grid size. - On-demand trial latents for
shrinkage()and Bayesianforestplot()shrinkage rows use the independent-block mixture product only (trial_marginals = "trials").lazy_latent = FALSEstill builds trial blocks at fit time with the same mixture product as on-demand shrinkage (no per-trialbayesmeta::convolve()at fit).
Documentation
ifrac()/at_ifrac = NULL: default pooled IF is on the DIRECTfit$supportgrid (tau_sampling = "grid"). Marginal\tauMonte Carlo andoptions(interactmeta.ifrac.n_tau_samples)apply only withtau_sampling = "posterior"; outer uncertainty over reporting\pi^\starusesreporting_if_draws()orfit_reporting_if_draws().vignette("comparing-da-ad-swada")— DA, AD, SWADA vs CAMS aftervignette("cams")(respire_age,sensitivity(),compare()).vignette("heterogeneity-after-cams")— / summaries, heterogeneity plots, and Bayesiantraceplot()on theagefit (aftervignette("cams")). Olddiagnostics.htmlandtraceplots.htmlredirect on the site.
Breaking changes
-
conventional()(the DA + AD bundle with analysis-specific weights) is removed, together with itsinteractmeta_conventionalprint / tidy / plot / forest /ifrac()methods. Fitda()andad()separately (or usesensitivity()/compare()).compare_weights(da, swada)now takes the AD weights from the [ad()] fit stored on the SWADA object. -
subgroupmeta_palette()andsubgroupmeta_theme_report()are no longer exported; use [interactmeta_palette()] and [interactmeta_theme_report()]. -
traceplot(fit, type = "modifier")removed (usetype = "interaction"or"combined"). -
Unexported:
plot_contribution(),plot_heterogeneity()— useplot(fit)orplot(fit, type = "heterogeneity"). -
Unexported:
compare_interactions(),compare_modifiers(),compare_combined(), andcompare_ifrac()— usecompare(sensitivity(...), estimand = ...)orcompare(fit1, fit2, ...)for two CAMS approaches.compare_weights()andcompare_heterogeneity()remain exported for SWADA-weight and τ side-by-side tables. - Marginal extractors
modifiers(),interactions(),combined()inheritprob,ifrac,contrast_sep, andexponentiatefromfit$reportingwhen those arguments are omitted (NULL).
