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

View source: R/accrual.n.plot.R

accrual.n.plotR Documentation

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)

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

Value

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

Author(s)

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

Examples

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")

accrual documentation built on Nov. 27, 2023, 1:08 a.m.