dan
dan

Reputation: 6314

Comparing Gini indices and Hill numbers between groups

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.

Upvotes: 0

Views: 55

Answers (0)

Related Questions