Create a polynomial contrast evaluated over a set of (orderable) factor levels.
Arguments
- A
A formula describing the contrast.
- name
A character string representing the name of the contrast.
- where
An optional formula defining the subset over which the contrast is computed.
- degree
An integer representing the degree of the polynomial (default: 1).
- value_map
An optional list that maps between levels of a factor and a numeric value.