datecut {PDN} | R Documentation |
Generating Optimal cuts for the Data
Description
Performs Cox proportional hazards regression model on patients survival days based on different cutoffs
Usage
datecut(x, surdays, event)
Arguments
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 |
Details
Building and draw personized disease network
Value
a vector of cutoff points that maximize the Z statistics for cox model between each Diagnosis/Procedure A to another Diagnosis/Procedure B
Examples
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])
[Package PDN version 0.1.0 Index]