Description Usage Arguments Details Value Examples
Performs Cox proportional hazards regression model on patients survival days based on different cutoffs
1 | datecut(x, surdays, event)
|
x |
comorbidity data matrix with column correspond to ICD9 codes and row correspond to each patient |
surdays |
survival days for each patient |
event |
indictor variable 1 represent patient died 0 represent patient survive |
Building and draw personized disease network
a vector of cutoff points that maximize the Z statistics for cox model between each Diagnosis/Procedure A to another Diagnosis/Procedure B
1 2 3 4 5 6 | comorbidity_data
survival_data
#Select a subset of data for toy example
comorbidity_data = comorbidity_data[c(1:10),]
survival_data = survival_data[c(1:10),]
k1 = datecut(comorbidity_data,survival_data[,1],survival_data[,2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.