nipymc icon indicating copy to clipboard operation
nipymc copied to clipboard

Warn and/or remove column when split_by is used and no values are present for a level of the splitting variable

Open tyarkoni opened this issue 8 years ago • 0 comments

Suppose we pass a variable to add_term() and set split_by='condition'. If the target variable has no valid values for one or more levels of the splitting variable, a constant term will be added to the model. This is typically not desirable. We should check for this and, at minimum, issue a warning. We should probably also implement a general check to make there is (at most) a single constant column in the design.

tyarkoni avatar May 08 '16 23:05 tyarkoni