Statistics Toolbox | ![]() ![]() |
D-optimal augmentation of an experimental design
Syntax
settings = daugment(startdes,nruns)
[settings,X] = daugment(startdes,nruns)
[settings,X] = daugment(startdes,nruns,'model
')
[settings, X] = daugment(...,'param1',value1,'param2',value2,...)
Description
settings = daugment(startdes,nruns)
adds nruns
runs to an experimental design using the coordinate exchange D-optimal algorithm. startdes
is a matrix of factor settings in the original design. The output matrix settings
is the matrix of factor settings for the design.
[settings,X] = daugment(startdes,nruns)
also generates the associated design matrix, X
.
[settings,X] = daugment(startdes,nruns,'
also controls the order of the regression model. The input, 'model
')
model
', can be one of these:
Alternatively model
can be a matrix of term definitions as accepted by the x2fx
function.
[settings, X] = daugment(...,'param1',value1,'param2',value2,...)
provides more control over the design generation through a set of parameter/value pairs. Valid parameters are the following::
Example
We add 5 runs to a 22 factorial design to allow us to fit a quadratic model.
startdes = [-1 -1; 1 -1; -1 1; 1 1]; settings = daugment(startdes,5,'quadratic') settings = -1 -1 1 -1 -1 1 1 1 1 0 -1 0 0 1 0 0 0 -1
The result is a 32 factorial design.
![]() | crosstab | dcovary | ![]() |