powered by
Return a matrix of independent contrasts -- a level for each term.
contr.independent(n, contrasts = TRUE)
A matrix with n rows and k columns, with k = n if contrasts = TRUE and k = n if contrasts = FALSE.
contrasts = TRUE
contrasts = FALSE
a vector of levels for a factor, or the number of levels
logical indicating whether contrasts should be computed
contr.independent(c(1, 2)) contr.independent(c(1, 2, 3))
Run the code above in your browser using DataLab