This function generates a cell means contrast matrix to support PLS models.
A vector of levels for a factor, or the number of levels.
a logical indicating whether contrasts should be computed; set to
This function uses
contr.treatment to generate a cell means contrast matrix in support of PLS models.
For datasets with categorical variables it produces the needed design matrix.
Nelson Lee Afanador
1 2 3 4 5 6 7
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.