View source: R/discriminant-functions.R
fisher_ld_prediction | R Documentation |
새로운 데이터에 대해 피셔 선형 판별함수를 이용하여 범주를 분류한다.
fisher_ld_prediction(.w, .z, .newdata, .xvar, .levels = c(1L, 2L))
.w |
선형 함수 계수. |
.z |
선형 함수 분류 경계치. |
.newdata |
새 데이터. |
.xvar |
범주 분류에 사용될 변수. |
.levels |
범주. |
분류 예측값을 포함한 데이터 프레임.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.