powered by
Create contrast matrix
contrast_matrix(R, ref, name = 1:R)
the number of column for the contrast matrix
the reference group. It could be a number between 1,..., R, R is number of conditions, or the name of reference group. If there is no reference group, it can be the string 'mean'.
a length R vector contains the name for conditions
contrast_matrix(5, 'mean')
Run the code above in your browser using DataLab