Pext: Pext

Description Usage Arguments Value

View source: R/Probability_extinction.R

Description

Probability of extinction at time Text of a single resistant cell produced at time t

Usage

1
2
Pext(t, Text, type_i, i, approximation = T,
  int.function = c("integrate", "pracma"))

Arguments

t

time of production of a resistant cell clone

Text

time of extinction

type_i

Type-i S4 object

i

resistant clone identifier

approximation

logical argument indicating if an approximation of the numerical integration method must be used or not. Default to TRUE for faster computation.

int.function

integration function. Possible options are "integrate" or "pracma". The default option is integrate function in R. If "pracma" is selected, the numerical integration methods from pracma package are used (more robust but slower option).

Value

Pext function returns the probability of extinction (between 0 and 1) at time T of a single resistant cell produced at time t


Michorlab/ACESO documentation built on June 4, 2021, 4:57 p.m.