hasi_r_num function

Calculates the HASI-R score for each patient and visit.