View source: R/pvlrt-wrappers.R
| lrt_zi_poisson | R Documentation |
Pseudo Likelihood Ratio Test under the zero-inflated Poisson model with relative reporting rate parametrization
lrt_zi_poisson(contin_table, nsim = 10000, ...)
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 a pvlrt object. See pvlrt for more details.
lrt_zi_poisson() is a wrapper for pvlrt() with
parametrization = "rrr".
pvlrt
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.