Skip to contents

Define a contrast (matrix) to specify exact hypothesis system

Usage

define_contrast(type = c("raw", "one", "all"), comparator = NA)

Arguments

type

(character)
either "raw", "one" or "all", see details.

comparator

(numeric | character)
either integer (index of comparator) or character (name of comparator)

Value

(cases_contrast)
object to be passed to evaluate

Details

  • "raw" contrast: compare all candidates against specified benchmark values

  • "one" ('all vs. one' or 'Dunnett') contrast: compare all candidates to a single comparator.

  • "all" ('all vs. all' or 'Tukey') contrast: compare all candidates against each other.

Examples

define_contrast("one", 1)
#> >> cases_contrast object of type 'one' (comparator: 1) <<