Comments (6)
I think I noticed what is the problem here. When q = 0
, the current code still calculates the quadratic entropy Q using the D_q = S
no matter what
from hillr.
I think there is no mistake in the code. If all species pairs are equally distinct, then D_q should equal to ordinary Hill number. But in real world, this won't happen, and D_q can be different from the ordinary Hill number.
from hillr.
Thanks for your answer!
However, neither in my data or in the example data the species pairs are equally distinct. In fact, they are functionally close. Therefore, D_q value should not be close to ordinary Hill number, i.e., there are less equally abundant, functionally equally distinct number of species than the actual number of species.
In addition, even if the distance between all pairs were 1 (the maximum value when distance is standardised), D_q should equal ordinary Hill number following the framework proposed by Chao et al 2014 (Unifying Species Diversity, Phylogenetic Diversity, Functional Diversity, and Related Similarity and Differentiation Measures Through Hill Numbers), right?
from hillr.
commit a3ea071
from hillr.
Alright, thank you again for your response.
I think you found one problem, indeed. However, I do not understand why when all species are equally abundant D_q = S. This would only be true if all species were equally functionally distinct, doesn't it? In Table 1 of the theoretical paper it is clear that dij should be considered even when q = 0, otherwise, for q = 0 functional diversity would be the same as taxonomic diversity and it would not make sense.
In addition, the problem of higher D_q than taxonomic diversity is still present when I set q > 0 in hill_funct(), which should also not happen for the same reason as for q = 0: due to functional redundancy, functional Hill number should not be greater than taxonomic Hill numbers.
from hillr.
Please read the Chiu and Chao 2014 Plos One paper for the equations. That's just how the functional hill numbers developed; I simply just translated their equations here. And based on equation 3, the D_q can be larger than S.
from hillr.
Related Issues (17)
- Add test files
- Update 2019 HOT 3
- object 'comm' not found HOT 1
- `hill_func` fails for all numeric traits HOT 1
- hill_func with categorical traits
- hill_func() returns same-ish values regardles of similarity HOT 6
- `hill_func` throws error when only one trait is measured
- add phylogenetic diversity HOT 1
- R session abored HOT 1
- Computing turnover and nestedness components of hill beta diversity
- Calculated Rao Q in hillR and FD packages are different HOT 3
- Problems installing HOT 1
- div_by_sp HOT 3
- Installation instructions - dependencies HOT 5
- Reference similar R packages HOT 5
- error in `hill_taxa_parti` if sites have the same and only one species HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hillr.