seq_archdeacon: Archdeacon _et al._ (1980) cross-over design specification

Description Usage Arguments Details Value Author(s) References Examples

View source: R/seq_archdeacon.R

Description

Specifies a cross-over design from Archdeacon et al. (1980).

Usage

1
seq_archdeacon(labels = 0:8, as_matrix = T, summary = T)

Arguments

labels

A vector of labels for the treatments. Should be of length nine, containing unique elements. Defaults to 0:8.

as_matrix

A logical variable indicating whether the design should be returned as a matrix, or a tibble. Defaults to T.

summary

A logical variable indicating whether a summary of the function's progress should be printed to the console. Defaults to T.

Details

seq_archdeacon() supports the specification of cross-over designs from Archdeacon et al. (1980). Sequences are supported for any chosen treatment labels (see labels). In addition, the design can be returned in matrix or tibble form (see as_matrix).

Precisely, a set of nine sequences are returned, for a design with nine periods and nine treatments. Ultimately, the (k,j)th element of the cross-over design matrix corresponds to the treatment a subject on the kth sequence would receive in the jth period.

Value

Either a matrix if as_matrix = T (with rows corresponding to sequences and columns to periods), or a tibble if as_matrix = F (with rows corresponding to a particular period on a particular sequence). In either case, the returned object will have class xover_seq.

Author(s)

Based on data from the Crossover package by Kornelius Rohmeyer.

References

Archdeacon DS, Dinitz JH, Stinson DR, Tillson TW (1980) Some new row-complete latin squares. J Comb Theory A 29:395-398.

Examples

1
2
3
4
5
6
# Archdeacon et al. (1980) design for the default parameters
archdeacon         <- seq_archdeacon()
# Using different labels
archdeacon_LETTERS <- seq_archdeacon(labels = LETTERS[1:9])
# Returning in tibble form
archdeacon_tibble  <- seq_archdeacon(as_matrix = F)

mjg211/xover documentation built on Oct. 16, 2019, 10:46 a.m.