求助,r语言中的判别分析

Python010

求助,r语言中的判别分析,第1张

Fisher判别分析,即 LDA

相应的R实现为:

MASS包中的 lad() 函数,qda() 函数

lad(x, grouping, prior = proportions ,tol = 1.0e-4, method , CV = FALSE, nu, .....)

lad(formula, data, .... ,subset , na.action )

1)当对象为数据框data.frame时

lda(x,grouping,prior = propotions,tol = 1.0e-4,method,CV = FALSE,nu,...)

2) 当对象为公式Formula时

lda(formula,data,...,subnet,na.action)

3) 当对象为矩阵Matrix时

lda(x,group,...,subnet,na.action)