This function calculates the contrast weights based on the contrast specification provided by the user. It is a generic function that dispatches to the appropriate method depending on the class of the contrast
This function calculates the contrast weights based on the contrast specification provided by the user. It is a generic function that dispatches to the appropriate method depending on the class of the contrast