View source: R/extractComorbScore.R
extractComorbScore | R Documentation |
compute the comorbidity score comorbscore
extractComorbScore(FRM_BAS)
FRM_BAS |
data.table containing the table FRM_BAS from the database of the PROGRESS study |
The comorbscore is the modified Charlson score (Charlson, Pompei, Ales, and MacKenzie, 1987) and is computed as a sum of the following points:
HI (heart failure, Herzinsuffizienz) or SCHRHERZ (other chronic heart problem): 1 point,
CEREBROERK (chronic cerebr. disease, Chronische Cerebr. Erkrankung): 1 point
CHRNIERE (chronic renal failure, chronische Nierenerkrankung): 2 points
CHRLEBER (chronic liver disease, chronische Lebererkrankung): 3 points
DIABETES: 1 point
CHRATEMLUNG (chronic lung disease, Chronische Atemwegs/Lungenerkrankung): 1 point
named list with two elements "detailed" and "compact" containing data.tables with the computed comorbscore and its components.
## Not run:
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
FRM_BAS <- readxl::read_excel(excel_fn, "FRM_BAS")
data.table::setDT(FRM_BAS)
extractComorbScore(FRM_BAS)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.