survivalProbability: Survival probability of the Consumer in a novel Resource

View source: R/HostSwitch.R

survivalProbabilityR Documentation

Survival probability of the Consumer in a novel Resource

Description

Survival probability of the Consumer in a novel Resource

Usage

survivalProbability(pInd, pOpt, sigma)

Arguments

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)

Details

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).

Value

The survival probability of the consumer

Examples

## 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)



HostSwitch documentation built on March 7, 2023, 8:26 p.m.