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

contr.metricR Documentation

Returns a matrix of contrasts for the train.kknn.

Description

Returns a matrix of contrasts for the train.kknn.

Usage

contr.metric(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.metric(5)


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