Package: pvEBayes 0.3.0

Yihao Tan

pvEBayes: Empirical Bayes Methods for Pharmacovigilance

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.1002/sim.70195>, <doi:10.48550/arXiv.2512.01057>; Koenker and Mizera (2014) <doi:10.1080/01621459.2013.869224>; Efron (2016) <doi:10.1093/biomet/asv068>.

Authors:Yihao Tan [aut, cre], Marianthi Markatou [aut], Saptarshi Chakraborty [aut], Raktim Mukhopadhyay [aut]

pvEBayes_0.3.0.tar.gz
pvEBayes_0.3.0.zip(r-4.7)pvEBayes_0.3.0.zip(r-4.6)pvEBayes_0.3.0.zip(r-4.5)
pvEBayes_0.3.0.tgz(r-4.6-x86_64)pvEBayes_0.3.0.tgz(r-4.6-arm64)pvEBayes_0.3.0.tgz(r-4.5-x86_64)pvEBayes_0.3.0.tgz(r-4.5-arm64)
pvEBayes_0.3.0.tar.gz(r-4.7-arm64)pvEBayes_0.3.0.tar.gz(r-4.7-x86_64)pvEBayes_0.3.0.tar.gz(r-4.6-arm64)pvEBayes_0.3.0.tar.gz(r-4.6-x86_64)
pvEBayes_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
pvEBayes/json (API)

# Install 'pvEBayes' in R:
install.packages('pvEBayes', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #760

Bug tracker:https://github.com/ropensci/pvebayes/issues

Pkgdown/docs site:https://docs.ropensci.org

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

pharmacovigilancecpp

3.98 score 3 scripts 458 downloads 11 exports 55 dependencies

Last updated from:3e0769b350 (on main). Checks:14 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK182
linux-devel-x86_64OK186
pkgdown docsOK205
source / vignettesOK254
linux-release-arm64OK174
linux-release-x86_64OK176
macos-release-arm64OK124
macos-release-x86_64OK314
macos-oldrel-arm64OK112
macos-oldrel-x86_64OK335
windows-develOK137
windows-releaseOK162
windows-oldrelOK130
wasm-releaseOK142

Exports:%>%estimate_null_expected_countextract_all_fitted_modelseyeplot_pvEBayesgenerate_contin_tableget_posterior_probheatmap_pvEBayesposterior_drawspvEBayespvEBayes_tunesummary_table_pvEBayes

Dependencies:backportscheckmateclarabelclicommonmarkcpp11curlCVXRdata.tabledistributionalfarvergenericsggdistggfittextggplot2gluegmpgridtextgtablehighsisobandjpeglabelinglatticelifecyclelitedownmagrittrmarkdownMatrixnumDerivosqppillarpkgconfigpngquadprogR6RColorBrewerRcppRcppEigenrlangS7scalesscsshadesslamstringistringrtibbleutf8vctrsviridisLitewacolorswithrxfunxml2

Introduction to pvEBayes

Rendered frompvEBayes-introduction.Rmdusingknitr::rmarkdownon Jun 15 2026.

Last update: 2026-05-03
Started: 2025-11-19

Readme and manuals

Help Manual

Help pageTopics
A suite of empirical Bayes methods to use in pharmacovigilance.pvEBayes-package
Obtain Akaike Information Criterion (AIC) for a pvEBayes objectAIC.pvEBayes
Obtain Bayesian Information Criterion (BIC) for a pvEBayes objectBIC.pvEBayes
Estimate expected null baseline count based on reference row and columnestimate_null_expected_count
Extract all fitted models from a tuned pvEBayes Objectextract_all_fitted_models
Generate an eyeplot showing the distribution of posterior draws for selected drugs and adverse eventseyeplot_pvEBayes
FDA opioid dataset with 243 mental-related adverse eventsfaers_opioid_mental
FDA GBCA dataset with 1328 adverse eventsgbca2025
FDA GBCA dataset with 69 adverse eventsgbca2025_69
Generate random contingency tables based on a reference table embedded signals,and possibly with zero inflationgenerate_contin_table
Obtain posterior probability of being a signalget_posterior_prob
Generate a heatmap plot visualizing posterior probabilities for selected drugs and adverse eventsheatmap_pvEBayes
Extract log marginal likelihood for a pvEBayes objectlogLik.pvEBayes
Plotting method for a pvEBayes objectplot.pvEBayes
Generate posterior draws for each AE-drug combinationposterior_draws
Print method for a pvEBayes objectprint.pvEBayes
Fit a general-gamma, GPS, K-gamma, KM or efron model for a contingency table.pvEBayes
Select hyperparameter and obtain the optimal general-gamma or efron model based on AIC and BICpvEBayes_tune
FDA statin dataset with 5119 adverse eventsstatin2025
FDA statin dataset with 44 adverse eventsstatin2025_44
FDA statin dataset with 42 adverse eventsstatin42
Obtain a summary table for a pvEBayes objectsummary_table_pvEBayes
Summary method for a pvEBayes objectsummary.pvEBayes
VigiBase opioid dataset with 100 mental-related adverse eventsvigi_opioid_mental