简体   繁体   English

如何在R中使用survivingsvm绘制生存曲线?

[英]How to plot survival curves using survivalsvm in R?

I have read the usage of svm in survival analysis in R. Now I have implemented it by using the package survivalsvm in R. I have a dataset df_acn . 我已阅读的使用svm在R.生存分析现在我已经通过使用包中实现它survivalsvm在R.我有一个数据集df_acn

library(survivalsvm)
set.seed(2)
train <- sample(nrow(df_acn), 0.3*nrow(df_acn), replace = FALSE)
Train <- df_acn[train,]
Valid <- df_acn[-train,]
surv_model <- survivalsvm(Surv(Line_Tenure_In_Days, churn) ~ .-(Subscriber_Line_Id), Train,type = "regression", gamma.mu = 1,
                          opt.meth = "ipop", kernel = "add_kernel")

surv_model_prd <- predict( surv_model, Valid)

Now my question is how to plot the survival curve using the fitted model on the test set in R. I searched the internet but could not find much of help from there. 现在,我的问题是如何使用R中的测试集上的拟合模型绘制生存曲线。我搜索了互联网,但从那里找不到很多帮助。

It is not possible to plot a survival curve from an survivalsvm object. 无法从survivingsvm对象绘制生存曲线。 Predicted values should be interpreted as ranks as described in fouodo et al. 如fouodo等人所述,预测值应解释为等级。 (2018). (2018)。 So appropriate performance measure when using survivalsvm is the C-Index . 因此,使用survivingsvm时适当的性能指标是C-Index

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM