Estimate the indicators of excess zeros for a ZIP distribution.

Share:

Description

Given counts and (estimated) Poisson expected value parameters and excess zero probabilities, this function estimates the indicator variable for an excess zero, for each count.

Usage

1
estimate_d(p, mu, y)

Arguments

p

A numeric vector, each element being the given/estimated probability of an excess zero for the corresponding count in y.

mu

A numeric vector, each element being the given/estimated Poisson expected value parameter for the corresponding count in y. Of same length as p.

y

An integer vector containing the observed counts. Of same length as p.

Value

A numeric vector, of same length as the input vector p.

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.