比较各组之间的基尼指数和希尔数

发布于 2025-01-14 17:21:56 字数 980 浏览 1 评论 0原文

发布在 CrossValidated 但我想我可能会得到这里有更多的牵引力。

我正在寻找一个 R 软件包,可以测试两组之间的 Gini 指数和 Hill 数字的差异。 R package simbootsbdiv 函数为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文