PoisLogNormal: Poisson log-normal

dplnormR Documentation

Poisson log-normal

Description

dplnorm gives the probability mass function, pplnorm gives the cumulative mass function, qplnorm the quantile function, rplnorm randome number generation

Usage

dplnorm(x, mu, sig, log = FALSE)

pplnorm(q, mu, sig, lower.tail = TRUE, log = FALSE)

qplnorm(p, mu, sig, lower.tail = TRUE, log = FALSE)

rplnorm(n, mu, sig)

Arguments

x

vector of integers for which to return the probability

mu

mean log abundance

sig

standard deviation of log abundance

log

logical, should the log probability be used

q

vector of integers for which to return the cumulative probability

lower.tail

logical, should the lower tail be used

p

vector of probabilities for which to return the quantile

n

number of random replicates

Details

These functions assume infinite support of the Poisson log-normal from [1, Inf). Calculations are based on code from the poilog package, see References

Value

A numeric vector of length equal to the input

Author(s)

Andy Rominger <ajrominger@gmail.com>

References

Engen, S., R. Lande, T. Walla & P. J. DeVries. 2002. Analyzing spatial structure of communities using the two-dimensional Poisson lognormal species abundance model. American Naturalist 160: 60-73.

See Also

dpois, dlnorm, dtpois

Examples

dplnorm(1:10, 0.5, 0.1)


ajrominger/pika documentation built on Nov. 13, 2022, 8:22 a.m.