- df
An object possible to convert to a data table, e.g.
a tibble or data.frame, containing patient level reported drug-event-pairs.
See header 'The df object' below for further details.
- df_colnames
A list of column names to use in df
. That is,
point da
to the 'report id'-column (report_id
), the
'drug name'-column (drug
), the 'adverse event'-column (event
)
and optionally a grouping column group_by
to calculate disproportionality
across. See the vignette for further details.
- da_estimators
Character vector specifying which disproportionality
estimators to use, in case you don't need all implemented options. Defaults
to c("ic", "prr", "ror").
- sort_by
The output is sorted in descending order of the lower bound of
the confidence/credibility interval for a passed da estimator. Any of the passed strings
in "da_estimators" is accepted, the default is "ic".
If a grouping variable is passed, sorting is made by the sample average across each drug-event-combination (ignoring NAs).
- number_of_digits
Round decimal columns to specified precision, default is two decimals.
- rule_of_N
Numeric value. Sets estimates for ROR and PRR to NA when observed
counts are strictly less than the passed value of rule_of_N
. Default value
is 3, 5 is sometimes used as a more liberal alternative. Set to NULL if you
don't want to apply any such rule.
- conf_lvl
Confidence level of confidence or credibility intervals.
Default is 0.95 (i.e. 95 % confidence interval).
- excel_path
Intended for users who prefer to work in excel with minimal work in R.
To write the output of da
to an excel file, provide a path
to a folder. For instance, to write to your current working directory, pass getwd()
.
The excel file will by default be named da.xlsx
. To control the excel file name,
pass a path ending with the desired filename suffixed with .xlsx
. If you
do not want to export the output to an excel file, pass NULL (the default).