Learn R Programming

cases (version 0.2.0)

define_contrast: Define a contrast (matrix) to specify exact hypothesis system

Description

Define a contrast (matrix) to specify exact hypothesis system

Usage

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

Value

(cases_contrast)
object to be passed to evaluate

Arguments

type

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

comparator

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

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

Run this code
define_contrast("one", 1)

Run the code above in your browser using DataLab