aeReport: Adverse Events Report

Description Usage Arguments Examples

Description

Generate reports to summarize adverse events.

Usage

1
2
3
4
5
6
  aeReport(data = NULL, vars, treat, time,
    times = sort(unique(time)), id = NULL,
    plotprop = FALSE, plotkm = TRUE, etimedata = NULL,
    tables = TRUE, times.tables = times,
    forceBinary = FALSE, ylim = c(0, 1), h = 5, w = 5,
    digits = 3)

Arguments

data

data.frame. Data used for report.

vars

character vector. Variables to include in analysis.

treat

factor vector. Vector of treatment group for each record.

time

character. Name of time variable within dataset.

times

numeric vector. Times used to subset data.

id

character. Name of id variable within dataset.

plotprop

logical. If ‘TRUE’ plot proportions of adverse events.

plotkm

logical. If ‘TRUE’ plot Kaplan-Meier estimates of cumulative probabilities of adverse events.

etimedata

list. List of time data, containing treatment, event time and event indicator for each variable.

tables

logical. If ‘TRUE’ generate summary tables of adverse events by times found in times.tables.

times.tables

numeric vector. Times used to generate summary tables.

forceBinary

logical. Set to ‘TRUE’ if variables are binary.

ylim

numeric vector. Set y-axis limits.

h

numeric. Height of plot. Default is 5in. See setps.

w

numeric. Width of plot. Default is 5in. See setps.

digits

numeric. Number of significant digits to print. Defaults to 3.

Examples

1
2
3
4
5
6
## Not run: 
  load(url('http://biostat.mc.vanderbilt.edu/wiki/pub/Main/Rreport/ssafety.rda'))
  ae <- c('headache', 'ab.pain', 'nausea', 'dyspepsia', 'diarrhea', 'upper.resp.infect', 'coad')
  aeReport(ssafety, ae, 'trx', 'week', id='id', times.tables=c(4,12), forceBinary=TRUE, ylim=c(0,0.15))

## End(Not run)

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