Create rownames for a contrast matrix using the coefficients and the names of the coefficients. The rownames will be [value * name] == null, e.g. [beta + 4*alpha] = 0.
.contrast2name(contrast, null = NULL, sep = c("[", "]"))
a character vector.
[matrix] a contrast matrix defining the left hand side of the linear hypotheses to be tested.
[vector, optional] the right hand side of the linear hypotheses to be tested.
[character of length 2, optional] character used in rownames to wrap the left hand side of the equation.
When argument NULL
is null then the rownames will not be put into brackets and the right hand side will not be added to the name.