Returns a category-weighted contrast matrix
a factor vector
a vector of weights with the same length as
ogical indicating if the result should be sparse (of class
Computes a contrast matrix similar to
reference category is however weighted by the sum of weights of the
A matrix with
nlevels(x) rows and
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.