Statistics Toolbox | ![]() ![]() |
D-optimal design of experiments - coordinate exchange algorithm
Syntax
settings = cordexch(nfactors,nruns)
[settings,X] = cordexch(nfactors,nruns)
[settings,X] = cordexch(nfactors,nruns,'model
')
[settings,X] = cordexch(...,'param1',value1,'param2',value2,...)
Description
generates the factor settings matrix, settings = cordexch(nfactors,nruns)
settings
, for a D-optimal design using a linear additive model with a constant term. settings
has nruns
rows and nfactors
columns.
also generates the associated design matrix [settings,X] = cordexch(nfactors,nruns)
X
.
[settings,X] = cordexch(nfactors,nruns,'
produces a design for fitting a specified regression modelmodel
')
.
The input, 'model
', can be one of these strings:
Alternatively model
can be a matrix of term definitions as accepted by the x2fx
function.
[settings,X] = cordexch(...,'param1',value1,'param2',value2,...)
provides more control over the design generation through a set of parameter/value pairs. Valid parameters are:
Example
The D-optimal design for two factors in nine runs using a quadratic model is the 32 factorial as shown below:
Algorithm
The cordexch
function searches for a D-optimal design using a coordinate exchange algorithm. It creates a starting design, and then iterates by changing each coordinate of each design point in an attempt to reduce the variance of the coefficients that would be estimated using this design.
See Also
bbdesign
, candexch
, candgen
, ccdesign
, daugment
, dcovary
, rowexch
, x2fx
![]() | cophenet | corr | ![]() |