Learn R Programming

cases (version 0.1.1)

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", "dunnett", "tukey"), comparator = NA)

Value

cases_contrast object to be passed to evaluate

Arguments

type

character, either "Raw", "dunnett" or "tukey")

comparator

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

Details

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

"dunnett" (all vs. one) contrast: compare all candidates to a single comparator.

"tukey" (all vs. all) contrast: compare all candidates against each other.

Examples

Run this code
define_contrast("dunnett", 1)

Run the code above in your browser using DataLab