- cpvarname
character, the name of the variable for which the cutpoints
are estimated.
- time
character, this is the follow-up time.
- event
character, the status indicator, normally 0=no event, 1=event
- covariates
character vector with the names of the covariates and/ or
factors. If no covariates are used, set covariates = NULL.
- data
a data.frame, contains the following variables:
- nb_of_cp
numeric, number of cutpoints to be estimated (1 or 2). The
default is: nb_of_cp = 1. The other option is nb_of_cp = 2.
- bandwith
numeric, minimum group size per group in percent of the total
sample size, bandwith must be between 0.05 and 0.30, default is 0.1
If ushape = TRUE, bandwidth must be at least 0.1.
- est_type
character, the method used to estimate the cutpoints. The
default is 'AIC' (Akaike information criterion). The other options is 'LRT'
(likelihood ratio test statistic)
- cpvar_strata
logical value: if FALSE, The dichotomised variable
serves as covariate in the Cox-regression model for cutpoint determination.
If TRUE, the dichotomised variable is included as a strata in the
Cox-regression model to determine the cutpoint rather than as a covariate.
Default is FALSE.
- ushape
logical value: if TRUE, the cutpoints are estimated under the
assumtion that the spline plot shows a U-shaped form or a inverted U-shaped
curve. Default is FALSE.
- symtails
logical value: if TRUE, the cutpoints are estimated with
symmetric tails. If nb_of_cp = 1, symtails is set to FALSE. Default is
FALSE.
- dp
numeric, number of decimal places the cutpoints are rounded to.
Default is dp = 2.
- plot_splines
logical value: if TRUE, a penalized spline plot is
created. Default is TRUE.
- all_splines
logical value: if TRUE, The plot shows splines with
different degrees of freedom. This may help determine whether
misspecification or overfitting occurs. Default is TRUE.
- print_res
logical value: if TRUE the function prints the summary
of the cutpoint estimation to the console. Default is TRUE.
- verbose
logical value: if TRUE the function prints the approximate
remaining process-time and other information to the console. If FALSE, no
information will be printed to the console, including the summary of the
cutpoint estimation. Default is TRUE.