sim_surv_gen: Simulate survival throughout a generation

Description Usage Arguments Value

View source: R/sim.R

Description

Simulates an individual's survival for a period of time corresponding to a generation.

Usage

1
sim_surv_gen(tpc, tseq, spsp, pmin)

Arguments

tpc

An individual's thermal-performance curve (TPC)

tseq

A vector of temperature values which will also determine how many days conform a generation.

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

A vector of 0/1 for survival at each moment in time. If a 0 occurs, all subsequent values are 0.


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