- time
A numeric value over which the type I error alpha
must be restricted.
- alpha
A proportion between 0 and 1 indicating the required maximal type I error.
Default is 0.05.
- psi
A numeric value indicating the estimated Poisson arrival rate of subjects
at their respective units. Can be determined using
parameter_assist()
.
- n_sim
An integer value indicating the amount of units to generate for the
determination of the control limit. Larger values yield more precise control limits,
but greatly increase computation times. Default is 20.
- coxphmod
(optional): A cox proportional hazards regression model as
produced by
the function coxph()
. Suggested:
coxph(Surv(survtime, censorid) ~ covariates, data = baseline_data)
.
Alternatively, a list with the following elements:
formula
:
a formula()
in the form ~ covariates
;
coefficients
:
a named vector specifying risk adjustment coefficients
for covariates. Names must be the same as in formula
and colnames of data
.
baseline_data
(optional): A data.frame
used for covariate resampling
with rows representing subjects and at least the
following named columns:
entrytime
:
time of entry into study (numeric);
survtime
:
time from entry until event (numeric);
censorid
:
censoring indicator (0 = right censored, 1 = observed),
(integer).
and optionally additional covariates used for risk-adjustment. Can only be specified
in combination with coxphmod
.
cbaseh
(optional): A function that returns the unadjusted cumulative
baseline hazard \(H_0(t)\). If cbaseh
is missing but
coxphmod
has been
specified as a survival object, this baseline hazard rate will be determined
using the provided coxphmod
.
inv_cbaseh
(optional): A function that returns the unadjusted inverse cumulative
baseline
hazard \(H^{-1}_0(t)\). If inv_cbaseh
is missing, it will be
determined from cbaseh
numerically.
interval
(optional): Interval in which survival times should be solved for numerically.
h_precision
(optional): A numerical value indicating how precisely the control limit
should be determined. By default, control limits will be determined up to 2 significant digits.
ncores
(optional): Number of cores to use to parallelize the computation of the
CGR-CUSUM charts. If ncores = 1 (default), no parallelization is done. You
can use detectCores()
to check how many
cores are available on your computer.
seed
(optional): A numeric seed for survival time generation. Default = my birthday.
pb
(optional): A boolean indicating whether a progress bar should
be shown. Default is FALSE
.
chartpb
(optional): A boolean indicating whether progress bars should
be displayed for the constructions of the charts. Default is FALSE
.
detection
Should the control limit be determined for an
"upper"
or "lower"
CGR-CUSUM? Default is "upper"
.
maxtheta
(optional): Maximum value of maximum likelihood estimate for
parameter \(\theta\). Default is log(6)
, meaning that
at most a 6 times increase/decrease in the odds/hazard ratio is expected.
assist
(optional): Output of the function parameter_assist()