Description Usage Arguments Author(s) Examples
View source: R/base_compareROC.R
compareROC can help produce a time dependent KM curve,such as 1-year,3-year or 5-year KM curves.
1 2 | compareROC(data, i.values, merge.i.values, timecutoff, roc.type, color,
output.name, return.plot)
|
data |
a data frame with survival data like time and status |
i.values |
c("PNI1","NIHrisk").colnames of markers |
merge.i.values |
list(merge1 = i.values).a list of merge markers selection |
timecutoff |
c(1-365,3-365,5-365).cut-off for time series |
roc.type |
c("ggplot","pROC")[1].ggplot recommanded |
color |
brewer.pal(12, "Set3")[c(1,3,4)].curve colors |
output.name |
part of PDF output name |
Weibin Huang<654751191@qq.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(fat)
# markers=c("BMI","Waist","WHR","belly fat thickness") #marker colnames
# status = "outcomes" #survival status
# merge.markers = list(c("BMI","Waist"))# the markers list that you want to merge as a co-prognostic factor
# return.plot = T # if T,return plot;if F,return data
# roc.type = c("ggplot","pROC")[1] # ggplot style is recommanded
# title="this is a title" # plot title
# color = brewer.pal(12, "Set3")[1:5] #curve colors.The lenght of colors must >= the number of curves.
# output.name = "ROC of something" # part of PDF name
compareROC2(data=fat,
markers,
status,
merge.markers=NULL,
return.plot=T,
roc.type,
title,
color,
output.name="test1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.