lrt_zi_poisson {pvLRT}R Documentation

Pseudo Likelihood Ratio Test under the zero-inflated Poisson model with relative reporting rate parametrization

Description

Pseudo Likelihood Ratio Test under the zero-inflated Poisson model with relative reporting rate parametrization

Usage

lrt_zi_poisson(contin_table, nsim = 10000, ...)

Arguments

contin_table

IxJ contingency table showing pairwise counts of adverse events for I AE (along the rows) and J Drugs (along the columns)

nsim

Number of simulated null contingency table to use for computing the p-value of the test

...

additional arguments passed to pvlrt

Value

Returns a pvlrt object. See pvlrt for more details.

Note

lrt_zi_poisson() is a wrapper for pvlrt() with parametrization = "rrr".

See Also

pvlrt

Examples


data("statin46")

# 500 bootstrap iterations (nsim) in the example below
# are for quick demonstration only --
# we recommended setting nsim to 10000 (default) or bigger
test1 <- lrt_zi_poisson(statin46, nsim = 500)
test1


[Package pvLRT version 0.5.1 Index]