Learn R Programming

scanstatistics (version 0.1.0)

estimate_zip_relrisk: Estimate the relative risk for an outbreak using a ZIP distribution.

Description

Scalar estimate of the relative risk \(q\) for zero-inflated Poisson data.

Usage

estimate_zip_relrisk(d, mu, y)

Arguments

d

A vector of indicator variables for whether the corresponding count in the argument y is an excess zero or not. Can also be estimates of these indicators.

mu

A vector of given/estimated Poisson expected value parameters, of same length as d.

y

An integer vector of the observed counts, of same length as d.

Value

A scalar, the estimated relative risk.