GenDat_rKJ {OneArm2stage}R Documentation

Generate Survival Data with Restricted Follow-Up

Description

Generate survival data with restricted follow-up from Weibull distribution.

Usage

GenDat_rKJ(shape, S_fixed, x_fixed, rate, t1, x, n, seed)

Arguments

shape

shape parameter for WB distribution.

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.

t1

the time when interim analysis happens.

x

the restricted follow-up time period, during which patients are monitored.

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]