model2Y2X

pyoptex.utils.model.model2Y2X(model, factors)[source]

Creates a Y2X function from a model.

Parameters

modelpd.DataFrame

The model

factorslist(Factor)

The list of factors in the design.

Returns

Y2Xfunc(Y)

The function transforming the design matrix (Y) to the model matrix (X).