View source: R/pvEBayes_main_function.R
estimate_null_expected_count | R Documentation |
This function estimates the expected null baseline count (E_{ij}
) for
each AE-drug combination under the assumption of independence between rows and
columns. The expected count is calculated using a reference row (other AEs)
and reference column (other drugs). This null baseline is typically used in
empirical Bayes modeling of pvEBayes
package for signal detection
and estimation in spontaneous reporting system (SRS) data.
estimate_null_expected_count(contin_table)
contin_table |
an IxJ contingency table showing pairwise counts of adverse events for I AEs (along the rows) and J drugs (along the columns). The reference row "Other AEs" and the reference column "Other drugs" need to be the I-th row and J-th column respectively. |
This null value estimator is proposed by Tan et al. (2025).
an nrow(contin_table)
by ncol(contin_table)
matrix.
Tan Y, Markatou M and Chakraborty S. Flexible Empirical Bayesian Approaches to Pharmacovigilance for Simultaneous Signal Detection and Signal Strength Estimation in Spontaneous Reporting Systems Data. arXiv preprint. 2025; arXiv:2502.09816.
estimate_null_expected_count(statin2025_44)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.