
Trial-level CAMS quantities \(\pi_j\), \(m_j\), \(g_j\)
Source:R/constructions.R
cams_trial_quantities.RdReads the transformed trial blocks stored on a cams() fit
(fit$transformed_data$trial_blocks). For binary CAMS,
\(g_j = y_{B j} - y_{A j}\) with A the reference subgroup.
Arguments
- fit
An
interactmetafit.- 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.