Skip to contents

Runs DA, AD, SWADA, and/or CAMS on one prepared dataset (typically after ifrac()). Use compare() on the result for side-by-side tables.

Usage

sensitivity(
  data_or_fit,
  reference = NULL,
  constructions = c("da", "ad", "swada", "cams"),
  trial = "study",
  subgroup = "level",
  modifier = NULL,
  ...
)

Arguments

data_or_fit

A data frame with yi, vi, trial and modifier columns, or an existing interactmeta from cams() (data and reference are read from the fit).

reference

Reference level of the modifier. Required for a data frame; inferred from data_or_fit when it is a CAMS fit.

constructions

Character vector of constructions to fit ("da", "ad", "swada", "cams"). Aliased as methods in some docs; do not confuse with method = "REML" passed via ... to fitters.

trial

Trial id column (default "study").

subgroup

Deprecated alias for modifier; supplying it warns.

modifier

Modifier column holding the two levels, one of which is the reference level (default "level", else a legacy "subgroup" column). A name that is not a column of the data is an error.

...

Passed to each construction fitter (da(), ad(), swada(), cams()).

Value

A list with class interactmeta_sensitivity containing $fits.