Description Usage Arguments Details Value
View source: R/SelectOptimalCutoff.R
This function computes the optimal cutoff PI^{*,T}
on the training set T
, i.e., the value that corresponds to the best separation in high-and-low risk group with respect to the log-rank test using the prognostic index PI^{T}
.
1 2 3 4 5 6 | SelectOptimalCutoff(
x,
y,
beta,
optCutpoint = c("minPValue", "median", "survCutpoint")
)
|
x |
input training matrix |
y |
response variable, |
beta |
regression coefficients estimated on training set |
optCutpoint |
a character string for choosing the optimal cutpoint on training set |
We use surv_cutpoint()
to determine the optimal cutpoint and ggsurvplot()
function to plot survival curves from survminer
package.
The following objects are returned:
df |
data frame about sample, prognostic index, time, status and group risk for each quantile q_{gamma}, with γ=0.25, ..., 0.80. |
summary |
summary information about number of patients at risk, cutoff and p.value for each quantile. |
opt.cutoff |
optimal cutoff selected. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.