| 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')
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 model'model')
. The input, 'model', can be one of these strings:
'interaction' - includes constant, linear, and cross-product terms.'quadratic' - includes interactions and squared terms.'purequadratic' - includes constant, linear and squared terms.Example
The D-optimal design for two factors in nine run using a quadratic model is the 32 factorial as shown below:
settings = cordexch(2,9,'quadratic')
settings =
-1 1
1 1
0 1
1 -1
-1 -1
0 -1
1 0
0 0
-1 0
See Also
rowexch, daugment, dcovary, hadamard, fullfact, ff2n
| cophenet | corrcoef | ![]() |