****************************************************************** *STATA syntax code for the computation of index* *values with the Swedish value set (VAS)* * *Changelog: Added the unrescaled values, which are the focus of the paper* *EQ_index contain the VAS values, EQ_rescaled contain the rescaled values* *Note that rescaling was not done on "death" so neither value set* *can be used for QALY calculations* ******************************************************************; gen disut_mo = . replace disut_mo = 0 if missing(disut_mo) & mobility == 1 replace disut_mo = 2.75 if missing(disut_mo) & mobility == 2 replace disut_mo = 6.53 if missing(disut_mo) & mobility == 3 gen disut_sc = . replace disut_sc = 0 if missing(disut_sc) & selfcare == 1 replace disut_sc = 7.63 if missing(disut_sc) & selfcare == 2 replace disut_sc = 8.47 if missing(disut_sc) & selfcare == 3 gen disut_ua = . replace disut_ua = 0 if missing(disut_ua) & activity == 1 replace disut_ua = 9.39 if missing(disut_ua) & activity == 2 replace disut_ua = 10.98 if missing(disut_ua) & activity == 3 gen disut_pd = . replace disut_pd = 0 if missing(disut_pd) & pain == 1 replace disut_pd = 4.7 if missing(disut_pd) & pain == 2 replace disut_pd = 8.31 if missing(disut_pd) & pain == 3 gen disut_ad = . replace disut_ad = 0 if missing(disut_ad) & anxiety == 1 replace disut_ad = 11.22 if missing(disut_ad) & anxiety == 2 replace disut_ad = 24.54 if missing(disut_ad) & anxiety == 3 gen disut_total = disut_mo + disut_sc + disut_ua + disut_pd + disut_ad gen EQ_index = . gen EQ_rescaled = . replace EQ_index = 83.22 - disut_total replace EQ_rescaled = (EQ_index - 24.39)/(83.22-24.39) replace EQ_index = round(EQ_index, .01) replace EQ_rescaled = round(EQ_rescaled, .001)