getStats {volcanoPlot} | R Documentation |
Get Summary AE Statistics
Description
Compares reference and comparison groups to calculate group-wise metrics and p-values for use in AE volcano plot.
Usage
getStats(dfAE, dfDemog, settings, stat = "Risk Ratio")
Arguments
dfAE |
Adverse events dataset structured as 1 record per adverse event per subject |
dfDemog |
Subject-level dataset |
settings |
Named list of settings (see examples below for standard list) |
stat |
Statistic to calculate for AE plot. Options are risk ratio ("RR" or "Risk Ratio"), risk difference ("RD" or "Risk Difference"). Defaults to "Risk Ratio". |
Value
a data frame of group-wise statistics for use in the volcano plot
Examples
settings<-list(
stratification_col="AEBODSYS",
group_col="ARM",
reference_group="Placebo",
comparison_group="Xanomeline High Dose",
id_col="USUBJID"
)
getStats(dfAE=safetyData::adam_adae, dfDemog = safetyData::adam_adsl, settings)
[Package volcanoPlot version 1.0.0 Index]