- type
indicates whether event-driven trial ("event) or fixed study duration
trial ("time"), Option: c("event", "time")
- trial_param
a vector of length 3 with components for required subject size, enrollment
time and required number of events ("event" type trial)/follow-up time
("time" type trial)
- bsl_dist
indicates the survival distribution for control group, option:
c("weibull", "loglogistic",mix-weibull)
- bsl_param
a vector of length 2 with the shape and rate (scale) parameter for the
weibull or loglogistic survival distribution of control group. A vector of length 3 with
shape, rate and cure rate for the mix-weibull distribution. See details.
- drop_param0
a vector of length 2 with shape and scale parameter for the
weibull distribution of drop-out time for control group
- drop_param1
a vector of length 2 with shape and scale parameter for the
weibull distribution of drop-out time for treatment group
- entry_pdf0
a function describing the pdf of the entry time for control. Default: uniform enrollment
- entry_pdf1
a function describing the pdf of the entry time for treatment.
- enrollmentType
default value is NULL, indicating a entry time follows specified
distribution. Specify "piecewise uniform", indicating entry time follows piecewise uniform
- entryP
if enrollmentType is piecewise uniform. entryP should be provided with
a list containing the enrollment rate at each interval
- HR_fun
a function describing the hazard ratio function between treatment
and control group
- ratio
allocation ratio between treatment and control group.
For example, ratio=2 if 2:1 allocation is used.
- cureModel
specifies the cure model. "PHCM" and "PHCRM".
- cureRate1
specifies the cure rate for the susceptible population in the experimental group if the cure model is PHCM.
- HR_data
a matrix consisting of covariates values
- upInt
a value indicating the upper bound used in the uniroot function.
See details. Default: 100
- summary
a logical indicating whether basic information summary is printed
to the console or not, Default: TRUE