x2fx
Convert predictor matrix to design matrix
Syntax
Description
treats the columns in D = x2fx(X,modelspec,CategoricalPredictors)X with indices listed in
CategoricalPredictors as categorical predictors.
specifies the number of levels for each categorical predictor in
D = x2fx(X,modelspec,CategoricalPredictors,CategoricalLevels)CategoricalPredictors. If you specify
CategoricalLevels, the values in each corresponding column of
X must be integers in the range from 1 to the specified number of
levels. X does not need to include every level value.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a