Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Charlson, assign0 across different records

    Dear all,

    I am using the (ssc install) charlson command to calculate the Charlson Comorbidity Index (CCI). I aim to compute each patient's CCI while applying the hierarchy of comorbidities (assign0). However, it seems that when a single patient has multiple records, the assign0 option does not assign the more mild form of a comorbidity to 0. Could I have overlooked something in the setup or usage of the command? Any advice would be greatly appreciated.

    Code:
    clear
    input int id str5(ICD9_1 ICD9_2)
    1 "5712" ""    
    1 "5724" ""    
    2 "5712" "5724"
    end
    
    charlson ICD9_1 ICD9_2, idvar(id) index(c) assign0 
    li id weightch9 weightch15 charlindex
Working...
X