Construct a contrast that sums to 1 and is used to define contrasts against the baseline.
Arguments
- A
A formula selecting the cells to average. A logical expression (e.g.
~ cond == "A") selects the matching cells; a bare factor name (e.g.~ cond) selects every cell. For a multi-basis HRF the weights are averaged over the basis functions of the selected cells (seebasis).- name
A character string specifying the name of the contrast.
- where
An optional formula specifying the subset of conditions to apply the contrast to.
- basis, basis_weights
Which basis functions of a multi-basis HRF to use and how to weight them; see
pair_contrast(). For examplebasis = 4gives the selected cells' response in the fourth FIR bin.