estimate_d: Estimate the indicators of excess zeros for a ZIP distribution.

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.


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.