Learn R Programming

MOODE (version 1.1.0)

candidate_set_full: Forms the full candidate set of treatments for all polynomial terms

Description

This function forms the full extended candidate set with all polynomial terms, with labels, not orthonormalised.

Usage

candidate_set_full(cand.trt, K)

Value

The full extended candidate set: the column of treatment labels, then named columns with polynomial terms up to the 4th order. For example, "x12" stands for \(x_1^2\), and "x1x2 stands for \(x_1x_2\), and "x23x4" for \(x_2^3x_4\).

Arguments

cand.trt

Candidate set of treatments, the first column contains treatment labels. Usually obtained as output from the candidate_trt_set function.

K

Number of factors.

Examples

Run this code

# Full extended candidate set for two 3-level factors

K<-2; Levels <- rep(list(1:3),K);
candidate_set_full(candidate_trt_set(Levels, K), K)

Run the code above in your browser using DataLab