regular.design {planor} | R Documentation |
Construct and randomize a regular factorial design.
regular.design(factors = NULL, nlevels = NULL, block = NULL, ordered = NULL, hierarchy = NULL, model = NULL, estimate = NULL, listofmodels = NULL, resolution = NULL, nunits = NULL, base = NULL, randomize = NULL, randomsearch = FALSE, output = "planordesign", verbose = FALSE, ...)
factors |
an object of class |
nlevels |
see |
block |
see |
ordered |
see |
hierarchy |
see |
model |
a list of model-estimate pairs of formulae, typically an
output from |
estimate |
see |
listofmodels |
see |
resolution |
see |
nunits |
see |
base |
see |
randomize |
an optional formula to randomize the design. |
randomsearch |
see |
output |
a string to specify the class of the output value: either a
|
verbose |
a |
... |
additional arguments, in particular those related to randomization |
An object of class data.frame
or
planordesign
, depending on the output
argument.
Monod, H. and Bouvier, A.
planor.factors
, planor.model
,
and the classes designfactors
,
listofkeyrings
,
listofdesignkeys
mydesign <- regular.design(factors=c("block", LETTERS[1:4]), nlevels=rep(3,5), model=~block + (A+B+C+D)^2, estimate=~A+B+C+D, nunits=3^3, randomize=~block/UNITS) print(mydesign)