pvEBayes0.2.1 package

Empirical Bayes Methods for Pharmacovigilance

AIC.pvEBayes

Obtain Akaike Information Criterion (AIC) for a pvEBayes object

BIC.pvEBayes

Obtain Bayesian Information Criterion (BIC) for a pvEBayes object

calculate_tilde_e

Estimate expected null baseline count based on reference row and colum...

dot-E_fit

Fit an Efron model for a contingency table.

dot-KM_fit

Fit a Koenker-Mizera (KM) model for a contingency table.

dot-NBmix_EM

Fit gamma mixture based empirical Bayes models using ECM algorithm.

estimate_null_expected_count

Estimate expected null baseline count based on reference row and colum...

extract_all_fitted_models

Extract all fitted models from a tuned pvEBayes Object

eyeplot_pvEBayes

Generate an eyeplot showing the distribution of posterior draws for se...

generate_contin_table

Generate random contingency tables based on a reference table embedded...

heatmap_pvEBayes

Generate a heatmap plot visualizing posterior probabilities for select...

logLik.pvEBayes

Extract log marginal likelihood for a pvEBayes object

pipe

Pipe operator

plot.pvEBayes

Plotting method for a pvEBayes object

posterior_draws

Generate posterior draws for each AE-drug combination

print.pvEBayes

Print method for a pvEBayes object

pvEBayes_tune

Select hyperparameter and obtain the optimal general-gamma or efron mo...

pvEBayes-package

A suite of empirical Bayes methods to use in pharmacovigilance.

pvEBayes

Fit a general-gamma, GPS, K-gamma, KM or efron model for a contingency...

summary.pvEBayes

Summary method for a pvEBayes object

tuning_efron

Select hyperparameter (p, c0) and obtain the optimal efron model based...

tuning_general_gamma

Select hyperparameter alpha and obtain the optimal general-gamma model...

A suite of empirical Bayes methods to use in pharmacovigilance. Contains various model fitting and post-processing functions. For more details see Tan et al. (2025) <doi:10.48550/arXiv.2502.09816>, <doi:10.48550/arXiv.2512.01057>; Koenker and Mizera (2014) <doi:10.1080/01621459.2013.869224>; Efron (2016) <doi:10.1093/biomet/asv068>.

  • Maintainer: Yihao Tan
  • License: GPL-3
  • Last published: 2026-01-11