Giter Site home page Giter Site logo

Comments (6)

daijiang avatar daijiang commented on May 21, 2024 1

I think I noticed what is the problem here. When q = 0, the current code still calculates the quadratic entropy Q using the $p_ip_j$ in the community data frame. This is now fixed so that when all species are equally abundant, then D_q = S no matter what $d_{ij}$ are (see page 5 case c of the origin paper).

from hillr.

daijiang avatar daijiang commented on May 21, 2024

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.

cassioalencarnunes avatar cassioalencarnunes commented on May 21, 2024

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.

daijiang avatar daijiang commented on May 21, 2024

commit a3ea071

from hillr.

cassioalencarnunes avatar cassioalencarnunes commented on May 21, 2024

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.

daijiang avatar daijiang commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.