Randomize a Design Frame

DESCRIPTION:
Randomizes the rows of a design frame. The randomization can be restricted, and center points can be treated specially.

USAGE:
randomize.design(design, restrict, cp.place)

REQUIRED ARGUMENTS:
design:
a data frame which has only factor objects.

OPTIONAL ARGUMENTS:
restrict:
a numeric or character vector specifying some factors in the design which are not scrambled.
cp.place:
a character argument specifying how center points should be placed in the randomized design. Possible values are: "ends" = half at beginning, half at end of blocks (design), "first" = at the beginning of the blocks (design), "last" = at the end of the blocks (design), "spaced" = third at beginning, third at middle and third at end of blocks (design), and "random" = randomly spaced. This argument is only applicable with designs generated with design.digest, where center points are encoded in the design. By default, the cp.place used to generate the design is retained by randomize.design. This argument allows you to change the placing of the center points when printing a design for laboratory use.

VALUE:
design is returned with the rows reordered. The rows are not renamed. An attribute "order" is added to the design, which is the vector that specifies the new row order (the output of the function randomize).

DETAILS:
This function helps output a design for use in the laboratory setting, where it is extremely important that experimental run order be randomized. The design is easily printed by worksheet.

The design can be returned to standard order for the analysis phase using sort.design.


SEE ALSO:
design.digest , randomize , sort.design , worksheet .

EXAMPLES:
a.design  <- design.digest("ff0508")
aran.des <- randomize.design(a.design)
worksheet(aran.des, response = "yield", graphics = T)