contr.earth.response

0th

Percentile

Please ignore

Contrasts function for factors in the earth response. For internal use by earth.

Keywords
models
Usage
contr.earth.response(x, base, contrasts)
Arguments
x

a factor

base

unused

contrasts

unused

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

Note

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.

See Also

contrasts

Aliases
  • contr.earth.response
Documentation reproduced from package earth, version 4.5.1, License: GPL-3

Community examples

Looks like there are no examples yet.