Learn R Programming

CPCAT (version 1.0.0)

hypotheses: Create main hypotheses and intersection hypotheses.

Description

Create main hypotheses and intersection hypotheses.

Usage

hypotheses(n)

Value

A contrast matrix reflecting all main and intersection hypotheses induced by the closure principle (CP). Please note that the leading column of treatment 0 (i.e., the control group) is not displayed because it always contains only ones.

Arguments

n

The number of treatments exclusive of the control group. That is, if we have, e.g., a control group and 3 treatments choose n=3.

Examples

Run this code
hypotheses(3)
hypotheses(n=2)

Run the code above in your browser using DataLab