Simple summary of AEs in IQRaedataER dataset

Generates a summary table of AEs in the IQRaedataER dataset. Only drug related AEs (AEDRGREL=1) are considered.

summary_IQRaedataER(
  data = data,
  stratifyTable = NULL,
  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

stratifyTable

Column to be used for startification of table

stratifyPlot

Column to be used for startification 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)