Simple summary of AEs in IQRaedataER dataset

Generates a summary table of AEs in the IQRaedataER dataset. By default only drug related AE are considered (AEDRGREL column=1) but this can be extended to all AEs (AEDRGREL=0 or 1).

summary_IQRaedataER(
  data = data,
  FLAG_AEDRGREL_ONLY = TRUE,
  stratifyTable = "STUDY",
  stratifyPlot = NULL,
  plotX = NULL,
  xlabel = NULL,
  stratName = NULL,
  breaksX = NULL,
  title = "Summary of drug related adverse events",
  addTitleFigure = "",
  filename = NULL,
  xtickangle = 0,
  SIGNIF = 3
)

Arguments

data

data.frame following the format of an IQRaedataER dataset or an IQRaedataER object

FLAG_AEDRGREL_ONLY

If TRUE then only AEDRGREL=1 AEs will be considered.

stratifyTable

Column to be used for stratification of table (needs to be provided)

stratifyPlot

Column to be used for stratification of plot in addition to plotX

plotX

Column to be used as x-axis for plot

xlabel

Name to be used in plot instead of plotX (default)

stratName

Name to be used in legend for startification instead of stratifyPlot (default)

breaksX

Breaks for x-axis

title

Title of the table and figures to be generated

addTitleFigure

Character string to be added after title (AE name) in each figure

filename

Filename (with path) to store the table in. If NULL then no file is exported

xtickangle

Allows to rotate the xticks as needed

SIGNIF

Number of significant digits for frequencies

Value

An list with a table (IQRoutputTable) and a list with figures is returned (figure only if plotX is defined)