orsf_control_fast {aorsf} | R Documentation |
Accelerated ORSF control
orsf_control_fast(method = "efron", do_scale = TRUE, ...)
method |
(character) a character string specifying the method for tie handling. If there are no ties, all the methods are equivalent. Valid options are 'breslow' and 'efron'. The Efron approximation is the default because it is more accurate when dealing with tied event times and has similar computational efficiency compared to the Breslow method. |
do_scale |
(logical) if |
... |
Further arguments passed to or from other methods (not currently used). |
code from the survival package was modified to make this routine.
Adjust do_scale
at your own risk. Setting do_scale = FALSE
will
reduce computation time but will also make the orsf
model dependent
on the scale of your data, which is why the default value is TRUE
. It
would be a good idea to center and scale your predictors prior to running
orsf()
if you plan on setting do_scale = FALSE
.
an object of class 'orsf_control'
, which should be used as
an input for the control
argument of orsf.
linear combination control functions
orsf_control_cph()
,
orsf_control_custom()
,
orsf_control_net()
orsf(data = pbc_orsf,
formula = Surv(time, status) ~ . - id,
control = orsf_control_fast())