lrt_zi_poisson function

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

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

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

Returns

Returns a pvlrt object. See pvlrt for more details.

Note

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

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

See Also

pvlrt

  • Maintainer: Saptarshi Chakraborty
  • License: GPL-3
  • Last published: 2023-03-06

Useful links