Learn R Programming

accrual (version 1.4)

accrual.n.plot: Plot for Prediction of Accrual in Fixed Time Frame

Description

Produce a plot and output for prediction of the number of participants will be recruited in a fixed time frame.

Usage

accrual.n.plot(n, TT, P, m, tm, Tp, Method)

Value

A list of prediction and corresponding plot on the number of participants that will be recruited in a fixed time frame.

Arguments

n

Target sample size

TT

Target completion time

P

The prior certainty, range 0-1; For Accelerated Prior, P = 1-m/n

m

Sample observed to date

tm

Time to date

Tp

The specific time that want to predict the recruitment

Method

Informative Prior, Accelerated Prior, Hedging Prior

Author

Junhao Liu, Yu Jiang, Cen Wu, Steve Simon, Matthew S. Mayo, Rama Raghavan, Byron J. Gajewski

Examples

Run this code
accrual.n.plot(n=300, TT=36, P=0.5, m=100, tm=10, Tp=36, Method="Informative Prior")
accrual.n.plot(n=300, TT=36, m=100, tm=10, Tp=36, Method="Accelerated Prior")
accrual.n.plot(n=300, TT=36, m=100, tm=10, Tp=36, Method="Hedging Prior")

Run the code above in your browser using DataLab