contr.dummy: Returns a matrix of contrasts for the train.kknn.

contr.dummyR Documentation

Returns a matrix of contrasts for the train.kknn.

Description

Returns a matrix of contrasts for the train.kknn.

Usage

contr.dummy(n, contrasts = TRUE)

Arguments

n

A vector containing levels of a factor, or the number of levels.

contrasts

A logical value indicating whether contrasts should be computed.

Author(s)

Joseline Quiros <joseline.quiros@promidat.com>

Examples

contr.dummy(5)


predictoR documentation built on Nov. 1, 2024, 1:08 a.m.