dropoutReport: Dropout Report

Description Usage Arguments Examples

Description

Generate a survival plot for subjects remaining in the study.

Usage

1
2
  dropoutReport(d.dropout, dropout, treat, time.inc = NULL,
    ylim = c(0, 1), panel = "dropout", what = "study", ...)

Arguments

d.dropout

numeric vector. Dropout date.

dropout

numeric vector. Indicator variable for dropout.

treat

factor vector. Vector of treatment group for each record.

time.inc

numeric. See survplot.

ylim

numeric vector. See survplot.

panel

character. Name for panel, defaults to ‘dropout’.

what

character. Name of study, defaults to ‘study’.

...

additional arguments, passed to survplot.

Examples

1
2
3
4
5
6
## Not run: 
  d.d <- sample(1:10, 200, replace=TRUE, prob=c(rep(0.03,9), 0.73))
  dropout <- as.numeric(d.d < 10)
  dropoutReport(d.d, dropout, as.factor(sample(c('A','B'), 200, replace=TRUE)), time.inc=2)

## End(Not run)

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