比较各组之间的基尼指数和希尔数
还 发布在 CrossValidated 但我想我可能会得到这里有更多的牵引力。
我正在寻找一个 R
软件包,可以测试两组之间的 Gini
指数和 Hill
数字的差异。 R
package
simboot
的 sbdiv
函数为 Shannon
和 < code>Simpson 多样性指数:
library(simboot)
data(predatGM)
#filter the predatGM data.frame to keep only two Variety groups and refactor:
predatGM <- dplyr::filter(predatGM,Variety %in% c("GM","S1"))
predatGM$Variety <- factor(predatGM$Variety, levels = c("GM","S1"))
simboot::sbdiv(X = dplyr::select(predatGM,-Block,-Variety),f = predatGM$Variety, theta = "Shannon", alternative = "two.sided")
simboot::sbdiv(X = dplyr::select(predatGM,-Block,-Variety),f = predatGM$Variety, theta = "Simpson", alternative = "two.sided")
所以我正在寻找与 Gini
指数和 Hill
数字等效的东西。
Also posted on CrossValidated but I think I might get more traction here.
I'm looking a R
packages that can test for differences in Gini
indices and Hill
numbers between two groups. The R
package
simboot
's sbdiv
function does that for the Shannon
and Simpson
diversity indices:
library(simboot)
data(predatGM)
#filter the predatGM data.frame to keep only two Variety groups and refactor:
predatGM <- dplyr::filter(predatGM,Variety %in% c("GM","S1"))
predatGM$Variety <- factor(predatGM$Variety, levels = c("GM","S1"))
simboot::sbdiv(X = dplyr::select(predatGM,-Block,-Variety),f = predatGM$Variety, theta = "Shannon", alternative = "two.sided")
simboot::sbdiv(X = dplyr::select(predatGM,-Block,-Variety),f = predatGM$Variety, theta = "Simpson", alternative = "two.sided")
So I'm looking for something equivalent for Gini
indices and Hill
numbers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论