latin {jmuOutlier}R Documentation

Latin Square

Description

Generates a Latin square, which is either standard or based on randomized rows and columns.

Usage

 latin(n, random = TRUE) 

Arguments

n

An integer between 2 and 26, inclusively, denoting the number of treatment groups.

random

Logical; if TRUE (default), a Latin square with randomized rows and columns is produced. If FALSE, a standard non-random Latin square is produced.

Details

The Latin square is produced in matrix format with treatments labeled as A, B, C, etc.

Author(s)

Steven T. Garren, James Madison University, Harrisonburg, Virginia, USA

See Also

design.lsd in R-package agricolae

Examples

latin( 5, random=FALSE )
latin( 6 ) # Default is random=TRUE

[Package jmuOutlier version 2.2 Index]