allcombs: Balanced Row-Column Design with all Possible Treatment Orders

View source: R/allcombs.R

allcombsR Documentation

Balanced Row-Column Design with all Possible Treatment Orders

Description

The function constructs a row-column design with subjects as rows and periods as columns. Each subject gets each treatment at most once. All possible treatment orders are assigned to the subjects.

Usage

allcombs(trt, k)

Arguments

trt

An integer > 1. Number of treatments (products) to be tested.

k

An integer <= trt. Number of periods for each subject.

Details

The design is a carryover balanced generalized Youden design that is uniform on the columns. The treatments are numbered 1,...,trt. The entry (i,j) of the design corresponds to the treatment the i-th subject gets in the j-th period.

Value

A matrix with trt!/(trt-k)! rows and k columns representing the experimental design.

Note

Requires the package gtools.

Author(s)

Oliver Sailer

References

Patterson, H.D. (1952): The construction of balanced designs for experiments involving sequences of treatments. Biometrika 39, 32-48.

Wakeling, I.N. and MacFie, H.J.H. (1995): Designing consumer trials balanced for first and higher orders of carry-over effect when only a subset of k samples from t may be tested. Food Quality and Preference 6, 299-308.

See Also

get.plan

Examples

# Design for 4 treatments assigned in 3 periods.
# All possible treatment orders occur.
allcombs(4,3) 

crossdes documentation built on April 5, 2022, 1:14 a.m.