predict_da: 새 데이터에 대한 범주 예측.

View source: R/discriminant-functions.R

predict_daR Documentation

새 데이터에 대한 범주 예측.

Description

범주별 판별함수를 이용하여 새 데이터에 대한 범주를 예측한다.

Usage

predict_da(
  .f,
  .new_data,
  .xvar,
  .include_score = FALSE,
  .include_posterior = FALSE,
  .include_class = TRUE
)

Arguments

.f

판별함수 리스트.

.new_data

새 관측 데이터 프레임.

.xvar

범주 분류에 사용될 변수.

.include_score

TRUE이면 범주별 판별함수값을 결과에 저장. default = FALSE.

.include_posterior

TRUE이면 사후확률값을 결과에 저장. default = FALSE.

.include_class

TRUE이면 추정범주값을 결과에 저장. default = TRUE.

Value

데이터 프레임: 범주 추정.

Examples

data(binaryclass2, package = "dmtr")
f <- ld_fun(binaryclass2, class, c(x1, x2))
predict_da(f, binaryclass2, c(x1, x2), .include_posterior = TRUE)


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