Contrasts function for factors in the
For internal use by earth.
Returns a diagonal matrix.
An example for a 3 level factor with levels
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.