Density of a zero truncated Poisson variable

Share:

Description

Probability mass function of a zero truncated Poisson variable

Usage

1
dztp(y, lambda)

Arguments

y

vector of length n

lambda

either a number or a vector of length n

Value

density, evaluated at y, this is a vector of length n

Author(s)

Nicole Kraemer

See Also

pztp

Examples

1
2
3
4
5
y<-0:10
lambda1<-5 # fixed lambda
out1<-dztp(y,lambda1)
lambda2<-2:12 # variable lambda
out2<-dztp(y,lambda2)