Deterministic Categorization of Items Based on External Code Data
Classcodes for adverse events after knee and hip arthroplasty
Summary data for all default classcodes object in the package
Convert output from classify() to matrix/data.frame/data.table
Make keyvalue object from classcodes object
Categorize cases based on external data and classification scheme
Classcodes methods
Classify codified data
Make clean text with only lowercase alphanumeric characters and "_"
codebook(s) for classcodes object
coder: Deterministic Categorization of Items Based on External Code Da...
Codify case data with external code data (within specified time frames...
Return all columns from x with names matching "find"
Decide if large objects should be copied
Calculate index based on classification scheme
Print classcodes object
Printing classified data
Objects exported from other packages
Set classcodes object
Summarizing a classcodes object
Visualize classification scheme in web browser
Fast categorization of items based on external code data identified by regular expressions. A typical use case considers patient with medically coded data, such as codes from the International Classification of Diseases ('ICD') or the Anatomic Therapeutic Chemical ('ATC') classification system. Functions of the package relies on a triad of objects: (1) case data with unit id:s and possible dates of interest; (2) external code data for corresponding units in (1) and with optional dates of interest and; (3) a classification scheme ('classcodes' object) with regular expressions to identify and categorize relevant codes from (2). It is easy to introduce new classification schemes ('classcodes' objects) or to use default schemes included in the package. Use cases includes patient categorization based on 'comorbidity indices' such as 'Charlson', 'Elixhauser', 'RxRisk V', or the 'comorbidity-polypharmacy' score (CPS), as well as adverse events after hip and knee replacement surgery.