SimData.TwoArm {ClinTrialPredict}R Documentation

Simulating survival dataset for a two-arm design

Description

Simulating survival dataset for a two-arm design

Usage

SimData.TwoArm(
  N.0 = NULL,
  N.1 = NULL,
  ratio = NULL,
  d = NULL,
  l = NULL,
  gamma.c = NULL,
  s = NULL,
  m = NULL,
  alpha0.t = NULL,
  nu0.t = NULL,
  HR = NULL,
  alpha1.t = NULL,
  nu1.t = NULL,
  design2 = NULL,
  seed = NULL,
  nsim = NULL
)

Arguments

N.0

number of subjects plan to be enrolled in control arm

N.1

number of subjects plan to be enrolled in experimental arm

ratio

randomization ratio between two arms: N.1 / N.0

d

expected number of events observed at time l

l

observation time

gamma.c

parameter of the exponential distribution of censoring time

s

enrollment time

m

maximum follow-up time for a subject

alpha0.t

shape parameter of weibull survival distribution for control arm

nu0.t

scale parameter of weibull survival distribution for control arm

HR

hazard ratio of experimental group over control group

alpha1.t

shape parameters of weibull survival distribution for experimental arm

nu1.t

scale parameter of a weibull survival distribution for control arm

design2

a list containing all the above parameters for two-arm design

seed

random seed

nsim

number of simulations

Value

This function will return the simulated datasets and the according design settings

Examples

design2 <- NumEventsSub.TwoArm(N.0=100,N.1=100,l=6,gamma.c=1
                                         ,alpha0.t = 1,nu0.t=5,alpha1.t=2,nu1.t=4,s=5,m=4)
SimData.TwoArm(design2=design2,seed=1234,nsim=100)


[Package ClinTrialPredict version 0.0.4 Index]