Description Usage Arguments Details Value Examples

Survival probability of the Consumer in a novel Resource

1 | ```
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

1 2 3 4 5 6 7 8 9 10 | ```
## 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 - Give a |pInd-pOpt|> 1, increases sigma the survival probability increases
survivalProbability(pInd=5,pOpt=30,sigma=1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.