Learn R Programming

pvda

An R package for executing disproportionality analyses in pharmacovigilance, using the information component (IC), proportional reporting rate (PRR) and reporting odds ratio (ROR).

Installation

# Install stable version from CRAN 
install.packages("pvda")

Example code

To run a disproportionality analysis, pass the adverse event report-level data (here, drug_event_df) to function da as:

library("pvda")

da1 <- 
drug_event_df |> 
da()

summary(da1)

To extract the results in a data frame, access "da_df" as a list object:

da_results <- 
da1$da_df

Copy Link

Version

Install

install.packages('pvda')

Monthly Downloads

245

Version

0.0.4

License

GPL (>= 3)

Maintainer

Michele Fusaroli

Last Published

January 17th, 2025

Functions in pvda (0.0.4)

ic

Information component
build_colnames_da

An internal function creating colnames for da confidence/credibility bounds
add_disproportionality

Add disproportionality estimates to data frame with expected counts
count_expected_prr

Count expected for Proportional Reporting Rate
round_and_sort_by_lower_da_limit

Sort a disproportionality analysis by the lower da conf. or cred. limit
round_columns_with_many_decimals

Rounds columns in da_df with many decimals
add_expected_counts

Produces expected counts
print.da

print function for da objects
write_to_excel

Write to excel
count_expected_ror

Count expected for Reporting Odds Ratio
ci_for_prr

Confidence intervals for Proportional Reporting Rate
ci_for_ror

Confidence intervals for Reporting Odds Ratio
conf_lvl_to_quantile_prob

Quantile probabilities from confidence level
count_expected_rrr

Count Expected for Relative Reporting Rate
grouped_da

Disproportionality Analysis by Subgroups
prr

Proportional Reporting Rate
drug_event_df

A simulated ICSR database
da

Disproportionality Analysis
ror

Reporting Odds Ratio
summary.da

Summary function for disproportionality objects
tiny_dataset

A 110 reports big, simulated ICSR database
apply_rule_of_N

apply_rule_of_N
ci_for_ic

Confidence intervals for Information Component (IC)