View source: R/findCutpointByCoxph.R
findCutpointByCoxph | R Documentation |
Try to find a single cutpoint by maximizing the hazard ratio or minimizing the AIC.
findCutpointByCoxph(input.d, surv.formula)
input.d |
input data, typically a matrix or data frame |
surv.formula |
a formula of type |
The formula must be univariable.
best cutpoint as determined by different metrics. Returns NA
if surv.formula
is not univariable, the variable is not numeric, or
there is no variation in the variable of interest.
surv.formula
cannot be multivariable. For example,
Surv(time, status) ~ x + age
won't work but Surv(time, status) ~ x
is fine.
Samuel Leung, Derek Chiu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.