buildnetworks {PDN}R Documentation

Generating Network Matrix

Description

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

Usage

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

# 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)

[Package PDN version 0.1.0 Index]