Description Usage Arguments Details Examples
View source: R/accrualReport.r
Generate graphics and LaTeX to analyze subject accrual
1 2 3 4 
formula 
formula object, with time variables on the left (separated by +) and grouping variables on the right. Enrollment date, randomization date, region, country, and site when present must have the variables in parenthesis preceeded by the key words 
data 
data frame. 
subset 
a subsetting epression for the entire analysis. 
na.action 
a NA handling function for data frames, default is 
dateRange 

zoom 

targetN 
integer vector with target sample sizes over time, same length as 
targetDate 

closeDate 

enrollmax 
numeric specifying the upper yaxis limit for cumulative enrollment when not zoomed 
studynos 
logical. Set to 
minrand 
integer. Minimum number of randomized subjects a country must have before a box plot of time to randomization is included. 
panel 
character string. Name of panel, which goes into file base names and figure labels for crossreferencing. 
h 
numeric. Height of ordinary plots, in inches. 
w 
numeric. Width of ordinary plots. 
hb 
numeric. Height of extended box plots. 
wb 
numeric. Weight of extended box plots. 
hdot 
numeric. Height of dot charts in inches. 
Typically the lefthandside variables of the formula, in order, are date of enrollment and date of randomization, with subjects enrolled but not randomized having missing date of randomization. Given such date variables, this function generates cumulative frequencies optionally with target enrollment/randomization numbers and with timezooming. Makes a variety of dot charts by righthandside variables: number of subjects, number of sites, number of subjects per site, fraction of enrolled subjects randomized, number per month, number per sitemonth.
1 2 3 4  ## Not run:
# See test.Rnw in tests directory
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.