Generates graphics for binary event proportions
eReport(
formula,
data = NULL,
subset = NULL,
na.action = na.retain,
minincidence = 0,
conf.int = 0.95,
etype = "adverse events",
panel = "events",
subpanel = NULL,
head = NULL,
tail = NULL,
h = 6,
w = 7,
append = FALSE,
popts = NULL
)
a formula with one or two left hand variables (the first representing major categorization and the second minor), and 1-2 right hand variables. One of these may be enclosed in id()
to indicate the presence of a unique subject ID, and the other is treatment.
input data frame
subsetting criteria
function for handling NA
s when creating analysis frame
a number between 0 and 1 specifying the minimum incidence in any stratum that must hold before an event is included in the summary
confidence level for difference in proportions
a character string describing the nature of the events, for example "adverse events"
, "serious adverse events"
. Used in figure captions.
panel string
a subpanel designation to add to panel
character string. Specifies initial text in the figure caption, otherwise a default is used.
a character string to add to end of automatic caption
height of graph
width of graph
set to TRUE
if adding to an existing sub-report
a list of options to pass to graphing functions
Frank Harrell
Generates dot charts showing proportions on left and risk difference with confidence intervals on the right, if there is only one level of event categorization. Input data must contain one record per event, with this record containing the event name. If there is more than one event of a given type per subject, unique subject ID must be provided. Denominators come from greport
options and it is assumed that only randomized subjects have records. Some of the graphics functions are modifications of those found in the HH package. The data are expected to have one record per event, and non-events are inferred from setgreportOption('denom')
. It is also assumed that only randomized subjects are included in the dataset.
# See test.Rnw in tests directory
Run the code above in your browser using DataLab