Learn R Programming

DoE.base (version 0.2)

utilities: Utility functions for DoE packages, not intended for direct use

Description

Utility functions for DoE packages, not intended for direct use

Usage

make.generators(name, liste)
make.formulas(orignames, factor.names)
des.recode(var, recodes, as.factor.result, char) 
printBy(data, byvars, ...)
Letters
generators(design, ...)
## S3 method for class 'design':
generators(design, ...)
## S3 method for class 'catlg':
generators(design, ...)
## S3 method for class 'character':
generators(design, select.catlg = catlg, ...)

Arguments

name
...
liste
...
orignames
...
factor.names
...
var
variable
recodes
character string specifying recodes, so far only used in the principal form -1=level[1];1=level[2]
as.factor.result
logical that specifies whether or not results are to be coerced to factor. The default is that factors are coerced to factor, while numeric variables with numeric recodes are kept numeric.
char
logical: should replacement be treated as character string (TRUE) or evaluated? default is FALSE
data
data frame to be printed in groups that are defined by the byvars
byvars
character vector of variable names; variables named here determine the groups; only adjacent observations are considered part of a group, i.e. if data are not ordered by the byvars, several separate occurrences of the same
design
FrF2 design given as catalogue entry, design itself or character string; function generators provides the generating contrasts for additional factors for these designs.
select.catlg
the catalogue in which to look for the design (should be of class catlg)
...
further arguments to function print or generators

Value

  • The functions are not intended for direct use.

Details

Most functions are not intended for direct use. The constant Letters is the vector of all capital and lower case letters of the Roman alphabet except I and i. It is used for default factor names and has been obtained as Letters <- c(LETTERS[-9],letters[-9]). The generic function generators and its methods determine generating contrasts for regular fractional factorial 2-level designs, which can be specified as the design itself (created with function FrF2), a list of catalogue entries in package FrF2 object catlg, or a character string that names such a catalogue entry. The method for the design itself cannot be used on designs of type FrF2.param... or FrF2.folded. Also, it cannot be used on designs produced with versions of FrF2 before 1.1 in case of blocked or splitplot designs. It is generally recommended to update all packages of the suite (DoE.base, FrF2, DoE.wrapper, RcmdrPlugin.DoE), whenever one of them is updated.

References

Hedayat, A.S., Sloane, N.J.A. and Stufken, J. (1999) Orthogonal Arrays: Theory and Applications, Springer, New York.

See Also

See Also FrF2-package, DoE.wrapper-package

Examples

Run this code
## default factor names for most design generating functions 
## (some quantitative designs have other default factor names)
## for up to 50 factors
Letters
generators("7-2.2")
generators(catlg[2:8])
generators(FrF2(16,7))
generators(FrF2(16,5,blocks=4,alias.block.2fi=TRUE))
generators(FrF2(16,5,WPs=4,nfac.WP=2))

Run the code above in your browser using DataLab