Data: Generate Time to event data using the framework of Relative...

Description Usage Arguments Examples

View source: R/Gen_data.R

Description

Generate Survival data for Sample size re-estimation method using the framework of Relative time method

Usage

1
Data(a, f, beta0, median_c, p1, p2, RT_P1, RT_P2, scenario)

Arguments

a

numeric variable

f

numeric variable

beta0

numeric variable

median_c

numeric variable

p1

numeric variable

p2

numeric variable

RT_P1

numeric variable

RT_P2

numeric variable

scenario

numeric variable between 1 and 4

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
set.seed(222)
interim <- Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
sum(interim$new.event)
## Not run: 
set.seed(222)
interim <- Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
sum(interim$new.event)
#' 
## End(Not run)

Palash63/RelativeM documentation built on Dec. 18, 2021, 6:39 a.m.