buildnetworks: Generating Network Matrix

Description Usage Arguments Value Examples

Description

This function use data set with cut off information to create network matrix

Usage

1
buildnetworks(x, k1, del = 0)

Arguments

x

comorbidity data matrix with column correspond to ICD9 codes and row correspond to each patient

k1

the cut off point between Diagnosis/Procedure A to another Diagnosis/Procedure B, it can be fix number, NULL and datecut

del

number of character deleted for each name of the input

Value

Network Matrix

Examples

1
2
3
4
5
# 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])
a = buildnetworks(comorbidity_data,k1)

PDN documentation built on May 2, 2019, 3:10 p.m.