簡體   English   中英

如何在R中使用survivingsvm繪制生存曲線?

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

我已閱讀的使用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)

現在,我的問題是如何使用R中的測試集上的擬合模型繪制生存曲線。我搜索了互聯網,但從那里找不到很多幫助。

無法從survivingsvm對象繪制生存曲線。 如fouodo等人所述,預測值應解釋為等級。 (2018)。 因此,使用survivingsvm時適當的性能指標是C-Index

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM