pinvGauss: Inverse Gaussian distribution

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/pinvGauss.R

Description

Cumulative distribution function for the inverse Gaussian distribution, for use with count-based density-independent PVA.

Usage

1
    pinvGauss(T, mu, s2, d)

Arguments

T

Time point(s) at which to evaluate the distribution. May be a vector.

mu

Mean growth rate of the population.

s2

Variance of the population growth rate.

d

Natural log of the ratio of starting population size to quasi-extinction population size. In the language of Morris and Doak (2002), d = log(Nc) - log(Nx).

Details

Calculates the cumulative distribution function for the inverse Gaussian distribution, using the parameterization of Eq. (3.5) in Morris and Doak (2002). It is equivalent to the Matlab program extcdf.m on p. 80 of that book. This can be interpreted as the probability of quasi-extinction by a given time for a population exhibiting density-independent growth with the mean and variance of the instantaneous growth rate, r = log(lambda), given by mu and s2. See Chapt. 3 of Morris and Doak for details.

Value

A vector of the same length as T, containing the CDF of the inverse Gaussian distribution at each value of T.

Note

This differs from the inverse Gaussian distributions in the statmod and SuppDists libraries, not only in the parameterization, but also in that it allows evaluation of the incomplete inverse Gaussian distribution (the integral of the pdf is less than 1) that occurs when mu > 0.

Author(s)

Bruce E. Kendall (kendall@bren.ucsb.edu)

References

Morris, W. F. and Doak D. F. (2002) Quantitative Conservation Biology: Theory and Practice of Population Viability Analysis. Sunderland: Sinauer Associates.

See Also

count.DI.PVA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Load the grizzly bear data
data(grizzly)

## Calculate the log-growth rates, and calculate their mean and variance
r <- log(grizzly$N[-1]/grizzly$N[-39])
mu <- mean(r); s2 <- var(r)

## Calculate the cumulative quasi-extinction risk (with threshold at 20) at
##  years 1-100
pinvGauss(1:100, mu, s2, log(grizzly$N[39]/20))

BruceKendall/PVA documentation built on Jan. 23, 2021, 2:56 a.m.