survivalProbability | R Documentation |
Survival probability of the Consumer in a novel Resource
survivalProbability(pInd, pOpt, sigma)
pInd |
Phenotype of ith Consumer attempting to disperse on the novel Resource |
pOpt |
The optimum phenotype the Consumer should have to maximize the colonization success |
sigma |
Standard deviation of the survival function (see Details for more explanations) |
This function calculates the survival probability of individual
consumers that attempt dispersal to a new host. It is the core function
of simHostSwitch()
.
The probability of survival of each individual of the consumer to a novel
Resource follows a normal distribution.
The formula is formalized as follows
P(pInd,pOpt) = e^{-\frac{(pInd-pOpt)^2}{2σ^2}}
The normalizing constant
NC = \frac{1}{σ(√(2π))}
is ignored here.\ "Sigma" the higher the sigma, the lower the selection and the higher the probability of surviving. Ecologically this value may be related to the niche breadth for the Consumer (species).
The survival probability of the consumer
## Example 1a - The ith consumer has the phenotype that maximize its ## colonization success on the new host, then pInd is equal to pOpt ## (pInd = pOpt), and the survival probability is 1. survivalProbability(pInd=5,pOpt=5,sigma=1) ## Example 1b - Increasing |pInd-pOpt| the survival probability decreases survivalProbability(pInd=5,pOpt=30,sigma=1) ## Example 1c - Given a |pInd-pOpt|> 1, increasing sigma results in ## increased survival probability survivalProbability(pInd=5,pOpt=30,sigma=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.