Classify data

Functions used for classifying data

categorize()

Categorize cases based on external data and classification scheme

classify()

Classify codified data

codify() print(<codified>)

Codify case data with external code data (within specified time frames)

index()

Calculate index based on classification scheme

Classification schemes

Default classification schemes for comorbidity and adverse events

knee_ae hip_ae

Classcodes for adverse events after knee and hip arthroplasty

charlson

Classcodes for Charlson comorbidity based on ICD-codes

cps

Classcodes for the comorbidity-polypharmacy score (CPS) based on ICD-10 codes

elixhauser

Classcodes for Elixhauser based on ICD-codes

hip_ae_hailer

Classcodes for infection and dislocation after hip arthroplasty

rxriskv

Classcodes for RxRisk V based on ATC codes

Example data

ex_atc

Example data for random ATC codes

ex_icd10

Example data for random codes assigned to random people

ex_people

Example data for random people

Functions and methods for classcodes

Functions used for classifying data

all_classcodes()

Summary data for all default classcodes object in the package

as.data.frame(<classified>) as.data.table(<classified>) as.matrix(<classified>)

Convert output from classify() to matrix/data.frame/data.table

as.classcodes() is.classcodes()

Classcodes methods

codebook() print(<codebook>) codebooks()

codebook(s) for classcodes object

print(<classcodes>)

Print classcodes object

print(<classified>)

Printing classified data

set_classcodes()

Set classcodes object

summary(<classcodes>) print(<summary.classcodes>)

Summarizing a classcodes object

visualize(<classcodes>)

Visualize classification scheme in web browser

Additional help functions

as.keyvalue(<classcodes>)

Make keyvalue object from classcodes object