Evaluates the CAMS combined-population treatment effect at the pooled
information fraction from ifrac(). This is the effect corresponding to
the combined population at its contribution-weighted subgroup composition
\(\widetilde{\pi}\), using the linear predictor
\(m(\widetilde{\pi})=\alpha+\widetilde{\pi}\beta_m\)
with \(\beta_m=\delta+\gamma\) (binary case; the implementation sums all
non-reference IF and subgroup coefficients).
Usage
combined(
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
When
at_ifracisNULL, passed toifrac():"interaction"(default) or"combined"for overall-block pooling of trial information fractions.- type
One or both of
"Overall"and"Prediction"(new-trial random effect; seemodifiers()).- prob, max_support, summary, contrast_sep, exponentiate, shrinkage, contribution
As in
modifiers().- 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
An interactmeta_combined_effect object (list with support,
summary, overall_ifrac, overall_ifrac_source, ifrac, reference,
prob, exponentiate). support holds the long draws indexed by type.
summary has one row per type with estimate (posterior median),
mean, sd, lci, uci, prob, and a combined label; interval
types are as in modifiers().
Details
When subgroup variances scale with sample size (or events) and allocation is similar, \(\pi\) is close to the trial's subgroup share, so this is typically a trial-mixture effect. It is still not automatically a target-population average: the pooled \(\widetilde{\pi}\) is precision-weighted across trials, and on log HR / log OR a mixture of subgroup effects is not collapsible. Trial-specific combined-population effects are the transformed quantities \(m_j = (1-\pi_j)y_{Aj}+\pi_j y_{Bj}\).
See also
modifiers() for level-specific \(\mu_A(\pi)\) and \(\mu_B(\pi)\) at the
same reporting IF; interactions(), ifrac()
