Classification functions in linear discriminant analysis in R

前端 未结 3 1519
陌清茗
陌清茗 2020-12-19 03:30

After completing a linear discriminant analysis in R using lda(), is there a convenient way to extract the classification functions for each group?

Fro

3条回答
  •  猫巷女王i
    2020-12-19 03:51

    I think your question was flawed ... OK, maybe not flawed but somewhat misleading at the very least. The discriminant function(s) refers to distances between groups, so there is no function associated with a single group but rather a function that describes the distances between any two group centroids. I just answered a more recent question and placed an example of calculating a score function using the iris dataset and using it to label cases in a 2d plot of predictors. In the case of a 2 group analysis the function will be greater than zero for one group and less than zero for the other group.

提交回复
热议问题