Learn R Programming

accrual (version 1.4)

accrual.T.plot: Plot for Prediction of Time

Description

Produce a plot and output for prediction of time frame for a certain number of participants.

Usage

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

Value

A list of prediction and corresponding plot on time frame that needed for reaching a certain number of participants.

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

np

The specific number of participants want to be predicted

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.T.plot(n=300, TT=36, P=0.5, m=100, tm=10, np=300, Method="Informative Prior")
accrual.T.plot(n=300, TT=36, m=100, tm=10, np=300, Method="Accelerated Prior")
accrual.T.plot(n=300, TT=36, m=100, tm=10, np=300, Method="Hedging Prior")

Run the code above in your browser using DataLab