Learn R Programming

crossdes (version 1.1-2)

balmin.RMD: Function to construct the balanced minimal repeated measurements designs of Afsarinejad (1983)

Description

The function constructs a row-column design with subjects as rows and periods as columns. The design is incomplete, i.e. no subject gets all the treatments. The design is balanced for carryover effects but will in general not be a balanced block design.

Usage

balmin.RMD(trt, n, p)

Arguments

trt

An integer >1 giving the number of treatments (products) to be tested.

n

An integer >1 giving the number of subjects (assessors) in the study.

p

An integer >1 giving the number of periods for each subject.

Value

A matrix with \(n\) rows and \(p\) columns representing the experimental design.

Details

A necessary and sufficient condition for the existence of such a design is that \(\frac{(trt-1)}{(p-1)}\) be a positive integer. In this case \(n = \frac{trt(trt-1)}{(p-1)}\). In the resulting design 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.

References

Afsarinejad, K. (1983): Balanced repeated measurements designs. Biometrika 70, 199-204.

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

Run this code
# NOT RUN {
balmin.RMD(10,30,4) # a balanced minimal RMD
balmin.RMD(11,22,6) # another balanced minimal RMD
# }

Run the code above in your browser using DataLab