contr.earth.response: Please ignore

Description Usage Arguments Value Note See Also

View source: R/expand.arg.R

Description

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

Usage

1

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:

1
2
3
4
      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


earth documentation built on Oct. 23, 2020, 5:08 p.m.