accrualReport: Accrual Report

Description Usage Arguments Details Examples

Description

Generate reports with patient accrual numbers.

Usage

1
2
3
4
5
6
  accrualReport(Minor, Major = character(length(Minor)),
    MajorLabel = "", MinorLabel = "", EntryDate1 = NULL,
    EntryDate2 = NULL, EntryDateLabel = "", EntryDate1cap,
    EntryDate2cap, dateRange, dateformat = "y-m-d",
    targetN, targetDate = NULL, panel = "randomized",
    hdotchart = 6, append = TRUE)

Arguments

Minor

character vector. Minor categorical variable for site.

Major

character vector. Major categorical variable for site.

MajorLabel

character. Label for major site variable.

MinorLabel

character. Label for minor site variable.

EntryDate1

character vector. Entry date for each subject.

EntryDate2

character vector. Entry date for each subject.

EntryDateLabel

character. X-axis label for entry date plot.

EntryDate1cap

character. Caption for first entry date.

EntryDate2cap

character. Caption for second entry date.

dateRange

a vector of dates. Should contain two values specifying a date range.

dateformat

character. Specify date format, see format argument for chron.

targetN

numeric. Target number of subjects to enroll.

targetDate

character. Target date to end enrollment period.

panel

character. Name for subjects panel, defaults to ‘randomized’.

hdotchart

numeric. Height of plot, passed to startPlot.

append

logical. If ‘TRUE’ output will be appended instead of overwritten.

Details

When EntryDate1 and dateRange are present, generate Ecdf for subject accrual over the enrollment period. When Major is present, generate dotchart for number of subjects by Major. Generate dotchart for number of subjects by Minor. Generate plot with the count of site having a given number of subjects.

Examples

1
2
3
4
5
6
7
## Not run: 
  accrualReport(sample(15, 200, replace=TRUE), MinorLabel='site',
    EntryDate1=as.Date("2005-01-01")+round(rgamma(200, 2, .01)),
    EntryDate1cap='randomized subjects', dateRange=c('2005-01-01', '2008-12-31'),
    targetN=300, targetDate='2008-12-31')

## End(Not run)

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