This function retrieves drug names and their occurrence percentages from the FDA Adverse Event Reporting System (FAERS) database for a specified drug substance.
Details
The function imports data from the "DRUG" and "DRUG_NAME" tables in the specified quarter of the FAERS database. It calculates the total number of occurrences for each unique drug name and orders the results in descending order based on occurrence count. The resulting data table includes drug names and their occurrence percentages.
Examples
if (FALSE) { # \dontrun{
# This example needs that setup_DiAna has been run before, to download DiAna dictionary
if (file.exists("external_source/DiAna_dictionary.csv")) {
FAERS_version <- "24Q1"
result <- get_drugnames("aripiprazole")
print(result)
}
} # }