projection {TwoArmSurvSim}R Documentation

Event and Trial Projection

Description

Trial projection given current snapshot dataset.

Usage

projection(snapshot_data, enroll_continue=FALSE, samplesize=0, rand_ratio=c(1,1), 
blocksize=1,accrual_interval=NULL, accrual_rate=NULL, lambda=NULL, 
trtHR=NULL, dropoutrate=NULL,eventtarget=0,maxlpfollowup=NULL)
  

Arguments

snapshot_data

Snapshot dataset in data frame. Data frame must include column "time","status" and "accrual". Optional column "onstudy" is indicator of patients are still on study.

rand_ratio

randomization ratio: control vs treatment

enroll_continue

Indicate whether trial is still enrolling new patients. Default is FALSE. if TRUE, user needs provide "samplesize", "rand_ratio","blocksize", "accrual_interval","accrual_rate".

samplesize

Total sample size of the trial. only needed if "enroll_continue=TRUE"

blocksize

Randomization blocksize, only needed if "enroll_continue=TRUE"

accrual_interval

accrual time windows. only needed if "enroll_continue=TRUE"

accrual_rate

accrual rate for each time window. only needed if "enroll_continue=TRUE"

lambda

Baseline hazard function parameter for exponential distribution

trtHR

hazard ratio between treatment and control

dropoutrate

Dropout rate

eventtarget

Total target event number

maxlpfollowup

Maximum followup time for last enrolled patient


[Package TwoArmSurvSim version 0.2 Index]