Skip to contents

Reads 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.

Usage

cams_trial_quantities(fit, reference = NULL)

cam_trial_quantities(fit, reference = NULL)

Arguments

fit

An interactmeta fit.

reference

Optional label of the reference subgroup (A) to report against. NULL (default) keeps the reference used in cams(). 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\), and at_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 with cams(..., 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.

Value

A tibble with trial, pi (\(\pi_j\), IF of the non-reference subgroup), m and v_m (combined coordinate \(m_j\) and its sampling variance), and g and v_g (contrast \(g_j\) and its sampling variance), with attributes reference and nonref.