hypotheses: Create main hypotheses and intersection hypotheses.

View source: R/CPCAT.R

hypothesesR Documentation

Create main hypotheses and intersection hypotheses.

Description

Create main hypotheses and intersection hypotheses.

Usage

hypotheses(n)

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.

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.

Examples

hypotheses(3)
hypotheses(n=2)

CPCAT documentation built on July 2, 2024, 5:06 p.m.