inmoose.edgepy.designAsFactor

inmoose.edgepy.designAsFactor(design)

Convert a general design matrix into a oneway layout if that is possible.

This function determines how many distinct row values the design matrix is capable of computing and returns a factor with a level for each possible distinct value.

Parameters:

design (matrix) – the design matrix. Assumed to be full column rank.

Returns:

factor of length equal to the number of rows in design

Return type:

Factor