
Calculate the LACE Index score for an acute hospital cohort
Source:R/scores.R
calculate_lace_index.RdEvaluates the standard bedside LACE index (0-19):
L: Length of stay (0 to 7 pts: <1d=0, 1d=1, 2d=2, 3d=3, 4-6d=4, 7-13d=5, >=14d=7)
A: Acuity of admission (3 pts if emergency admission, 0 otherwise)
C: Charlson Comorbidity Index (0 to 5 pts: 0=0, 1=1, 2=2, 3=3, >=4=5)
E: Emergency department visits in prior 6 months (0 to 4 pts: 0=0, 1=1, 2=2, 3=3, >=4=4)