作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
当我运行这条线时
my.lda<-lda(Group ~ X1+X2+X3+X4, data = df)
我得到一个以这一行结尾的长输出
Proportion of trace:
LD1 LD2 LD3 LD4
0.8750 0.0958 0.0286 0.0006
如何将迹线的 LD1 和 LD2 比例存储在单独的变量中?
谢谢
最佳答案
尝试:
prop.table(my.lda$svd^2)
根据文档,lda(...)$svd
是一个向量
the singular values, which give the ratio of the between- and within-group standard deviations on the linear discriminant variables. Their squares are the canonical F-statistics.
关于r - 在R中提取LDA(线性判别分析)数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23163157/
我必须在服务器上运行 Excel 并终止我正在使用 taskkill.exe 的 excel.exe 进程: System.Diagnostics.Process.Start("taskkill.ex
我是一名优秀的程序员,十分优秀!