plotKMCurve {survriskpred}R Documentation

Plot Kaplan-Meier curves for risk groups obtained from cross validation.

Description

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.

Usage

plotKMCurve(list, model)

Arguments

list

list returned by function survRiskPred.

model

numeric for a model considering

  • 1: gene expression only

  • 2: covariates only

  • 3: both gene expression and covariates

Examples

res <- test.survRiskPredict("Pomeroy")
plotKMCurve(res, 1)
plotKMCurve(res, 2)
plotKMCurve(res, 3)

[Package survriskpred version 0.2 Index]