Reports the CAMS treatment-by-subgroup interaction \(\gamma\).
For binary CAMS, \(\mu_B(\pi)-\mu_A(\pi)=\gamma\) for every
information fraction \(\pi\), so this quantity is not evaluated
at the pooled reporting IF. "Prediction" adds new-trial interaction
heterogeneity. Named interactions() to match modifiers() and so it
does not mask stats::interaction().
Usage
interactions(
fit,
at_ifrac = NULL,
at = NULL,
ifrac = NULL,
type = c("Overall", "Prediction"),
prob = NULL,
max_support = NULL,
summary = TRUE,
contrast_sep = NULL,
exponentiate = NULL,
shrinkage = FALSE,
contribution = NULL,
reference = NULL,
.rpi_scalar_ok = FALSE
)Arguments
- fit
A
interactmetafromcams().- at_ifrac
Combined-population reporting information fraction (\(\pi^\star\)). If
NULL(default), pools viaifrac()withifrac(default"interaction"). Useat_ifrac = "interaction"or"combined"for the same. A scalar in[0, 1]is a plug-in; a numeric vector (one value per support row) assigns different \(\pi^\star\) to each inner mixture node (unusual). To average over a distribution of \(\pi^\star\) (outer draws \(\times\) innernrow(fit$support)grid), usereporting_if_draws()asat_ifrac, e.g.at_ifrac = reporting_if_draws(1000, shape1 = 5, shape2 = 7). REML / ML: pooled modes or a scalar only.- at
Deprecated alias of
at_ifrac.- ifrac, prob, max_support, summary, contrast_sep, exponentiate, shrinkage
As in
modifiers().at_ifrac/ifracare unused for the pooled interaction \(\gamma\); they are retained for API compatibility and are used whenshrinkage = TRUE.- type
One or both of
"Overall"and"Prediction"whenshrinkage = FALSE. For CAMS,"Overall"is the fixed interaction \(\gamma\);"Prediction"adds new-trial random effects. Forswada(),"Prediction"is the SWADA predictive interval (common study weights on \(g_j\) plus interaction \(\hat\tau_g^2\)); DA / AD accept"Overall"only.- contribution
Deprecated; use
at_ifrac(as inmodifiers()).- reference
Optional label of the reference subgroup (A) to report against.
NULL(default) keeps the reference used incams(). Naming the stored non-reference subgroup re-expresses the existing fit without refitting (two subgroups only): information fractions become \(1-\pi\) (trial \(\pi_j\), pooled \(\omega\), andat_ifrac, which is read on the requested orientation), interactions change sign (\(g_j \rightarrow -g_j\), \(\gamma \rightarrow -\gamma\)) and contrast labels swap; modifier-level and combined-population effects are unchanged. Frequentist (REML / ML) results equal a refit withcams(..., reference = ). Bayesian results can differ slightly from such a refit because the default normal prior on \((\alpha,\beta_m)\) is not invariant to this reparameterization.- .rpi_scalar_ok
Internal. When
TRUE, allows a scalarat_ifracwithreporting_if_draws()-style outer averaging. End users should omit this argument.
Value
A interactmeta_interaction_effects object analogous to modifiers(),
with an interaction column instead of level. Interaction labels are
"<non-reference><contrast_sep><reference>" (for example "IMV-Non-IMV"),
i.e. \(\mu_B-\mu_A\).
