Description Usage Arguments Value
Similar to contr.poly, but will provide orthogonal contrasts for unbalanced data. By specifying the 'width' argument correctly the function will also return a contrast matrix with an interpretable linear term.
1 | contr.poly.weighted(f, weights = NULL, width = 1)
|
f |
a factor |
weights |
optional vector of weights. If not supplied, weights
are calculated from |
width |
width of group variable (only affects the linear term) |
contrast matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.