survivalProbability: Survival probability of the Consumer in a novel Resource

Description Usage Arguments Details Value Examples

View source: R/HostSwitch.R

Description

Survival probability of the Consumer in a novel Resource

Usage

1

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

 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)

HostSwitch documentation built on Sept. 27, 2021, 9:06 a.m.