trial_data_simulation: Simulate Clinical Trial with Accrual Time and Trial Stop...

Description Usage Arguments

View source: R/utility_functions.R

Description

Simulate clinical trial by adding accrual time to the simulated survival data. And cut the trial at the target event time or at the maximum follow up time

Usage

1
trial_data_simulation(simdata,accrual,eventtarget=NULL,maxlpfollowup=NULL)

Arguments

simdata

A data frame contains simulated survival time and censor status.

accrual

Simulated accrual time.

eventtarget

Target number of events of the trial

maxlpfollowup

The maximum follow up time for the last enrolled patient.


TwoArmSurvSim documentation built on Feb. 26, 2021, 9:06 a.m.