Description Usage Arguments Value Examples
The function returns a contrast matrix for a forward difference coding scheme.
1 |
k |
An integer indicating the number of factor levels. |
A matrix with the coding scheme
1 2 3 | # Returns a contrast matrix for a 4-level factor
contr_forward(4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.