Usage
tdSim.method2(N,duration, lambda12, lambda23=NULL, lambda13,
HR=NULL, exp.prop,rateC, min.futime = 0, min.postexp.futime = 0)Arguments
duration
Duration of the study. This is used in censoring
lambda12
Lambda12 parameter to control time to exposure
lambda23
Lambda23 parameter to control time to event after exposure
lambda13
Lambda13 parameter to control time to event in the control group
HR
Hazard Ratio. This input is optional. If HR is set and lambda23 is not set, lambda23 = lambda13*HR
exp.prop
A numeric value between 0 and 1 (not include 0 and 1) that represents the proportion of subjects that are assigned with an exposure
rateC
Rate of the exponential distribution to generate censoring times
min.futime
A numeric value that represents minimum follow-up time (in months). The default value is 0, which means no minimum follow-up time is considered. If it has a positive value, this argument will help exclude subjects that only spend a short amount of time in
min.postexp.futime
A numeric value that represents minimum post-exposure follow-up time (in months). The default value is 0, which means no minimum post-exposure follow-up time is considered. If it has a positive value, this argument will help exclude subjects that only spe