displayFreq: Display Adverse Event Frequencies

Description Usage Arguments

Description

summary

Usage

1
2
3
4
5
6
7
8
9
  displayFreq(dataframe, subjectVar, minorVar, majorVar,
    occurrenceVar, stratVar, denomSub = NULL,
    fileName = NULL, labelLen = 10, pvalue = 0.05,
    keepPvalue = 0.5, minDisplayNum = 2, majorGrid = NULL,
    minorGrid = NULL, plotGrid = TRUE, gridDig = 0,
    titleOffsetKoef = 10, titleOffsetX = 0,
    minorToMajorKoef = 5, sparseKoef = 1.5, graphWidth = 8,
    graphHeight = 11, gridCex = 0.5, labelCex = 0.5,
    titles = NULL)

Arguments

dataframe

data.frame. Data with adverse events.

subjectVar

character. Variable classified to major and minor category (subject ID).

minorVar

character. Name of minor category variable within dataset. (i.e. specific adverse event)

majorVar

character. Name of major category variable within dataset. (i.e. body system adverse event belongs to)

occurrenceVar

character. Name of occurrence variable within dataset. It indicates the different occurrences of a minor category for a given subjectVar (date or order in which event happened). This variable is assumed to be unique for given subject and given minorVar.

stratVar

character. Name of stratification variable within dataset. (i.e. treatment)

denomSub

numeric vector. Contains the number of unique subjects in each stratVar level. It should have the same names and length as levels(stratVar). Defaults to ‘NULL’, where values will be calculated accordingly from the dataset.

fileName

character. Name of output file, defaults to ‘NULL’.

labelLen

numeric. Maximum length of grid labels.

pvalue

numeric. If for a given major and minor category, the proportion test gives a p-value less than pvalue, then this category will be highlighted. Defaults to ‘0.5’.

keepPvalue

numeric. Only categories with a p-value (according to the proportion test) less than keepPvalue will be displayed.

minDisplayNum

numeric. Only categories with a total frequency more than minDisplayNum will be displayed. Defaults to ‘2’.

majorGrid

numeric vector. Grid of major category.

minorGrid

numeric vector. Grid of minor category.

plotGrid

logical. Set to ‘TRUE’ to plot grid lines.

gridDig

numeric. Set the number of digits used to round the grid digits.

titleOffsetKoef

numeric. The vertical distance the title should stay from the graph.

titleOffsetX

numeric. The horizontal distance the title should stay from the graph.

minorToMajorKoef

numeric. The distance the bars for the minor category should be longer than the bars for the major category.

sparseKoef

numeric. How farther away the graphs for different stratVar values should be located on the diagram.

graphWidth

numeric. Width of plot, the default is ‘8’.

graphHeight

numeric. Height of plot, the default is ‘11’.

gridCex

numeric. Relative size of the grid digits.

labelCex

numeric. Relative size of the labels.

titles

named character vector. Titles for each frequency display. It's names should be levels of treatment.


harrelfe/rreport documentation built on May 17, 2019, 2:48 p.m.