estimate_null_expected_count {pvEBayes} | R Documentation |
Estimate expected null baseline count based on reference row and column
Description
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.
Usage
estimate_null_expected_count(contin_table)
Arguments
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. |
Details
This null value estimator is proposed by Tan et al. (2025).
Value
an nrow(contin_table)
by ncol(contin_table)
matrix.
References
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.
Examples
estimate_null_expected_count(statin2025_44)