Package: medicalrisk 1.3.9001

Patrick McCormick

medicalrisk: Medical Risk and Comorbidity Tools for ICD-9-CM Data

Generates risk estimates and comorbidity flags from ICD-9-CM codes available in administrative medical datasets. The package supports the Charlson Comorbidity Index, the Elixhauser Comorbidity classification, the Revised Cardiac Risk Index, and the Risk Stratification Index. Methods are table-based, fast, and use the 'plyr' package, so parallelization is possible for large jobs. Also includes a sample of real ICD-9 data for 100 patients from a publicly available dataset. Compatibility updates by Renova.

Authors:Patrick McCormick [aut, cre], Thomas Joseph [aut]

medicalrisk_1.3.9001.tar.gz
medicalrisk_1.3.9001.zip(r-4.7-any)medicalrisk_1.3.9001.zip(r-4.6-any)medicalrisk_1.3.9001.zip(r-4.5-any)
medicalrisk_1.3.9001.tgz(r-4.6-any)medicalrisk_1.3.9001.tgz(r-4.5-any)
medicalrisk_1.3.9001.tar.gz(r-4.7-any)medicalrisk_1.3.9001.tar.gz(r-4.6-any)
medicalrisk_1.3.9001.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
medicalrisk/json (API)

# Install 'medicalrisk' in R:
install.packages('medicalrisk', repos = c('https://renova-r.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/patrickmdnet/medicalrisk/issues

Datasets:

On CRAN:

Conda:

3.00 score 113 downloads 1 mentions 13 exports 12 dependencies

Last updated from:bde34970c8 (on renova-1.3.9001). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK119
source / vignettesOK185
linux-releaseOK114
macos-releaseOK86
macos-oldrelOK106
windows-develOK72
windows-releaseOK73
windows-oldrelOK63
wasm-releaseOK104

Exports:generate_charlson_index_dfgenerate_comorbidity_dficd9cm_charlson_deyoicd9cm_charlson_quanicd9cm_charlson_romanoicd9cm_elixhauser_ahrq37icd9cm_elixhauser_quanicd9cm_rcriicd9cm_sessler_rsimelt_icd9listmerge_icd9_dx_and_procssessler_get_single_betaverify_sessler_rsi

Dependencies:cligluehashlifecyclemagrittrplyrRcppreshape2rlangstringistringrvctrs

medicalrisk: Calculating risk and comorbidities from ICD-9-CM codes
Introduction | Working with ICD-9-CM Data | Comorbidity Maps | Comorbidity Index | Risk Stratification Index | Conclusion | References

Last update: 2026-11-15
Started: 2026-11-15

medicalrisk: Advanced comorbidity analysis
Introduction | Calculating Mortality Risk

Last update: 2026-11-15
Started: 2026-11-15

Readme and manuals

Help Manual

Help pageTopics
List of Charlson comorbiditiescharlson_list
Map of Charlson comorbidity categories to revised weightscharlson_weights
Map of Charlson comorbidity categories to weightscharlson_weights_orig
List of Elixhauser comorbiditieselixhauser_list
Calculate the Charlson Comorbidity Indexgenerate_charlson_index_df
Generate a comorbidity dataframegenerate_comorbidity_df
Create Deyo map of ICD-9-CM to Charlson comorbiditiesicd9cm_charlson_deyo
Create Quan map of ICD-9-CM to Charlson comorbiditiesicd9cm_charlson_quan
Create Romano map of ICD-9-CM to Charlson comorbiditiesicd9cm_charlson_romano
Create AHRQ v3.7 map of ICD-9-CM to Elixhauser comorbiditiesicd9cm_elixhauser_ahrq37
Create Quan map of ICD-9-CM to Elixhauser comorbiditiesicd9cm_elixhauser_quan
List of ICD-9-CM diagnostic and procedural codesicd9cm_list
Create Map of ICD-9-CM to Revised Cardiac Risk Index classesicd9cm_rcri
Returns composite Sessler risk stratification index, given a list of ICD-9-CM codes.icd9cm_sessler_rsi
Convert ICD-9-CM code list to dataframemelt_icd9list
Merge ICD-9-CM diagnostic and procedure codesmerge_icd9_dx_and_procs
Values for calculating RSI for 1 year mortalityrsi_beta_1yrpod
Values for calculating RSI for 30-day length of stayrsi_beta_30dlos
Values for calculating RSI for 30-day mortalityrsi_beta_30dpod
Values for calculating RSI for in-hospital mortality.rsi_beta_inhosp
Sample data for validating RSIrsi_sample_data
Sample results for validating RSIrsi_sample_results
Returns the covariate coefficient for a particular diagnosis or procedure code, along with the actual code that was found in the internal database of coefficients. If a child code is supplied but its parent is in the database, the coefficient for the parent will be returned, along with that parent code. For example, if D1231 is supplied but only D123 is available, D123 will be used. This is apparently how the SPSS sample code works.sessler_get_single_beta
Validates this Sessler RSI implementation against reference dataverify_sessler_rsi
First 100 patients and their ICD-9-CM codes from the Vermont Uniform Hospital Discharge Data Set for 2011, Inpatient.vt_inp_sample