sim_surv: Simulate survival

Description Usage Arguments Value

View source: R/sim.R

Description

Simulates the survival of an individual (defined by a TPC) at a particular environmental temperature.

Usage

1
sim_surv(tpc, te, spsp, pmin)

Arguments

tpc

An individual's TPC

te

The environmental T

spsp

Survival probability scaling parameter. Equivalent to the probability of survival at Pmax. Corresponds to the "p" parameter of a binomial distribution of size 1.

pmin

The percentage of Pmax corresponding to Pmin.

Value

1/0 If the individual survived or not.


ggcostoya/limon documentation built on April 27, 2021, 10:09 p.m.