plotKMCurve {survriskpred} | R Documentation |
This function plots Kaplan-Meier curves for risk groups obtained from cross validation using models with gene expression only, with covariates only and with both gene expression and covariates. If no covariates are provided, only the Kaplan-Meier curve related with the model with gene expression only can be plotted. If any covariates are provided, Kaplan-Meier curves for three models can be given.
plotKMCurve(list, model)
list |
list returned by function |
model |
numeric for a model considering
|
res <- test.survRiskPredict("Pomeroy") plotKMCurve(res, 1) plotKMCurve(res, 2) plotKMCurve(res, 3)