全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
6937 2
2012-01-06
请问R中lda函数的几个输出代表什么意思,我的输入和输出如下:
> j<-read.table("d:\\a.txt")
> j
  V1 V2 V3
1  1  2  3
2 11 15 16
3 14 16 19
4  3  5  7
5 16 17 19
6  5  6  5
7 25 23 29
> f<-scan("d:\\d.txt")
Read 7 items
> f
[1] 0 1 1 0 1 0 2
> lda(j,f)
Call:
lda(j, f)
Prior probabilities of groups:
        0         1         2
0.4285714 0.4285714 0.1428571
Group means:
        V1        V2 V3
0  3.00000  4.333333  5
1 13.66667 16.000000 18
2 25.00000 23.000000 29
Coefficients of linear discriminants:
          LD1        LD2
V1 -0.2528760  0.7852387
V2  0.5273609 -1.1972942
V3  0.3697051  0.2932140
Proportion of trace:
   LD1    LD2
0.9362 0.0638
>

请问Coefficients of linear discriminants和Proportion of trace表示什么意思?
谢谢
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-12-15 17:59:44
Prior probabilities of groups: 先验概率
Group means: 平均值
Coefficients of linear discriminants: 线性方程的系数
Proportion of trace:比例的痕迹


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-6-21 21:18:05
> library(MASS)
> ld=lda(G~x1+x2)
> ld
Call:
lda(G ~ x1 + x2)

Prior probabilities of groups:
  1   2
0.5 0.5

Group means:
     x1   x2
1  0.92 2.10
2 -0.38 8.85

Coefficients of linear discriminants:
          LD1(是什么意思)
x1 -0.1035305(请问这是什么的系数)
x2  0.2247957(这是什么的系数)
求出来的线性判别方程是什么?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群