Reorders the rows of a contrast matrix to properly set the reference level
.switch_reference_level(contrast_matrix, old_reference, new_reference)
A matrix with the reordered rows and correct values for the reference level
An unlabeled contrast matrix
The previously specified reference level, usually the
default for the scheme found by .get_reference_level
The index of the row to use as the new reference level