Check if valid contrast
Sometimes a user might pass a matrix that can't actually be used, in which case we can avoid some calculations by stopping earlier.
.is_valid_contrmat(contrast_matrix)
contrast_matrix
: Contrast matrixinvisibly returns TRUE if the contrast matrix is valid
Useful links