Statistics Toolbox    
candgen

Generate candidate set for D-optimal design

Syntax

Description

xcand = candgen(nfactors,'model') generates a candidate set appropriate for a D-optimal design with nfactors factors and the model model. The output matrix xcand has nfactors columns, with each row representing the coordinates of a candidate point. model is one of:

'linear'
Constant and linear terms (the default)
'interaction'
Constant, linear, and cross product terms
'quadratic'
Interactions plus squared terms
'purequadratic'
Constant, linear, and squared terms

Alternatively, model can be a matrix of term definitions as accepted by the x2fx function.

[xcand,fxcand] = candgen(nfactors,model) returns both the matrix of factor values xcand and the matrix of term values fxcand. You can input the latter to candexch to generate the D-optimal design.

See Also

candexch, rowexch, x2fx


  candexch canoncorr