Description Usage Arguments Value Note See Also
Contrasts function for factors in the earth
response.
For internal use by earth.
1 |
x |
a factor |
base |
unused |
contrasts |
unused |
Returns a diagonal matrix.
An example for a 3 level factor with levels A
, B
, and C
:
1 2 3 4 |
Earth uses this function internally.
You shouldn't need it.
It is made publicly available only because it seems that is necessary
for model.matrix
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.