generate_contrast: Generate contrast matrix

View source: R/informatrix.R

generate_contrastR Documentation

Generate contrast matrix

Description

A function return a matrix of contrast for given values of configuration.

Usage

generate_contrast(opt, t, p)

## S3 method for class 'interference'
generate_contrast(opt, t, p)

## S3 method for class 'dropout'
generate_contrast(opt, t, p)

## S3 method for class 'proportional'
generate_contrast(opt, t, p)

Arguments

opt

Numeric. opt = 0 means D-optimal, opt = 1 means A-optimal.

t

Positive Integer. The number of levels of treatments. of one of those classes 'dropout','proportional', or 'interference'.

p

Postitive Integer. The number of periods, or number of plots in a block.


OWEA documentation built on Sept. 18, 2022, 1:07 a.m.