x2fx

pyoptex.utils.design.x2fx(Yenc, modelenc)[source]

Create the model matrix from the design matrix and model specification.

Parameters

Yencnp.ndarray(2d)

The encoded design matrix.

modelencnp.ndarray(2d)

The encoded model, specified as in MATLAB.

Returns

Xencnp.ndarray(2d)

The model matrix