Description Usage Arguments Examples
Generate reports to summarize adverse events.
1 2 3 4 5 6 |
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 |
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
|
w |
numeric. Width of plot. Default is 5in. See
|
digits |
numeric. Number of significant digits to print. Defaults to 3. |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.