contr.earth.response: Contrasts for the "earth" response
Description
Contrasts function for factors in the "earth" response.
For internal use by earth.Usage
contr.earth.response(x, base, contrasts)
Value
- Returns a diagonal matrix.
An example for a 3 level factor with levels
A
, B
, and C
:
A B C
A 1 0 0
B 0 1 0
C 0 0 1