Learn R Programming

icd (version 3.1.2)

comorbid_common: Internal function to calculate co-morbidities.

Description

This common comorbidity calculation code does not depend on ICD type. There is some type conversion so the map and input codes are all in 'short' format, fast factor generation, then fast comorbidity assignment.

Usage

comorbid_common(x, map, visit_name = NULL, icd_name, return_df = FALSE,
  comorbid_fun = comorbidMatMul, ...)

Arguments

comorbid_fun

function i.e. the function (not character string) to be called to do the comorbidity calculation