contrast function

Computes statistics for inference in a given contrast