assertDesign function

Check dimensionality of design matrix