TPois: Truncated Poisson distribuiton

dtpoisR Documentation

Truncated Poisson distribuiton

Description

dtpois gives the probability mass function, ptpois gives the cumulative mass function, qtpois the quantile function, rtpois randome number generation

Usage

dtpois(x, lambda, log = FALSE)

ptpois(q, lambda, lower.tail = TRUE, log = FALSE)

qtpois(p, lambda, lower.tail = TRUE, log = FALSE)

rtpois(n, lambda)

Arguments

x

vector of integers for which to return the probability

lambda

mean 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 truncated Poisson from [1, Inf).

Value

A numeric vector of length equal to the input

Author(s)

Andy Rominger <ajrominger@gmail.com>

See Also

dpois

Examples


dtpois(1:10, 2)


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