Learn R Programming

scanstatistics (version 0.1.0)

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

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.