fisher_ld_prediction: 피셔 선형 판별 함수 예측값.

View source: R/discriminant-functions.R

fisher_ld_predictionR Documentation

피셔 선형 판별 함수 예측값.

Description

새로운 데이터에 대해 피셔 선형 판별함수를 이용하여 범주를 분류한다.

Usage

fisher_ld_prediction(.w, .z, .newdata, .xvar, .levels = c(1L, 2L))

Arguments

.w

선형 함수 계수.

.z

선형 함수 분류 경계치.

.newdata

새 데이터.

.xvar

범주 분류에 사용될 변수.

.levels

범주.

Value

분류 예측값을 포함한 데이터 프레임.

Examples

data(binaryclass2, package = "dmtr")
w <- fisher_ld(binaryclass2, class, c(x1, x2))
z <- fisher_ld_threshold(binaryclass2, class, c(x1, x2))
pred <- fisher_ld_prediction(w, z, binaryclass2, c(x1, x2), .levels = attr(w, "group"))


youngroklee-ml/dmtr documentation built on June 12, 2022, 6:24 p.m.