Skip to content

incorporate within-sample information #30

@rmcminds

Description

@rmcminds

currently, the model conflates effects on alpha diversity with effects on generalism/specialism. This is because, for a given factor or host node, a general increase in the probability of finding things increases all symbiont types in all samples, which is probably easiest to interpret as a change in ADiv, but also means less-likely symbiont types are more likely to be found in some samples, influencing generalism. what might be ideal is recognizing that an increase in alpha diversity would increase the probability for all types (the current model), whereas an increase in generalism would actually keep the overall probability of finding something (the sum of the various type-specific probabilities?) the same while essentially only increasing the probability of finding the rarer types (essentially evening out or smoothing the probabilities). to do this, the various probabilities within each sample would have to be 'aware' of each other somehow.

one thought is to explicitly model the number of types found in a sample using, say, a poisson distribution, and then pass the current model output (slightly modified so it doesn't have a grand mean parameter) to a softmax function and a Wallenius' noncentral multivariate hypergeometric distribution (https://en.wikipedia.org/wiki/Wallenius%27_noncentral_hypergeometric_distribution) with all k=1 to determine which particular types are represented. since the existing parameters would then be normalized on a per-sample basis, they would then only represent generalism-specialism, not alpha diversity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions