# 生存数据计算C指数并进行比较

## 安装补充包

- conda activate ggsurvplot
- conda install -c bioconda bioconductor-survcomp -y

## 计算C指数

    1
    2
    3
    4

    library(survcomp)
    C_index1 <- concordance.index(x=test_data$GS, surv.time=test_data$time, surv.event=test_data$status, method="noether")
    C_index2 <- concordance.index(x=test_data$T, surv.time=test_data$time, surv.event=test_data$status, method="noether")
    C_index3 <- concordance.index(x=test_data$Risk_Score_Ridge, surv.time=test_data$time, surv.event=test_data$status, method="noether")

## 比较C指数

    1
    2

    cindex.comp(C_index1, C_index3)
    cindex.comp(C_index2, C_index3)

统计学
生存数据计算C指数并进行比较
https://occdn.limour.top/2271.html
Author
Limour
Posted on
August 20, 2022
Licensed under
对富集结果进行贝叶斯网络推断 Previous
蛋白互作网络PPI分析后进行hub基因提取 Next

#### Search

Keyword