GenDat_KJ {OneArm2stage}R Documentation

Generate Survival Data with unrestricted Follow-Up

Description

Generate survival data with restricted follow-up Using Weibull Distribution.

Usage

GenDat_KJ(shape, S_fixed, x_fixed, rate, tf, t1, n, seed)

Arguments

shape

shape parameter for WB distributions.

S_fixed

survival probability at the fixed time point x_fixed.

x_fixed

a fixed time point where the survival probability is known.

rate

a constant accrual rate.

tf

the follow-up time.

t1

the interim analysis time.

n

sample size.

seed

seed used for the random sample generation.

Value

Two dataframes: data (the full data for final analysis) and data_t1 (the data for interim analysis), both containing the following 4 variables:
Entry time when each patient enters the trial, assumed to be uniform from 0 to ta with ta as the time when enrollment ends.
time the time under observation during entire trial (in data) or before t1 (in data_t1) for each patient.
status the status indicator of patients (event = 1, censored = 0), which can be different between data and data_t1.
Total the sum of Entry and time.


[Package OneArm2stage version 1.2.1 Index]