1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
* Calculated Utility of EuroQol 5D *
**********************************************************
* AJ Garcia Ruiz                                         *
**********************************************************
* Chair of Health Economics & Rational Drug Use *
* Department of Pharmacology and Clinical Therapeutics   *
* School of Medicine. University of Malaga               *
**********************************************************
* Note: The name of variables are:    eq5d01 for нtem 1, eq5d02 for нtem 2,.......
* The scale VAS nominated             eq5dvas
* Calculated missing values. 

IF (eq5d01 < 1 OR eq5d01 > 3) eq5d01 = 9 .
IF (eq5d02 < 1 OR eq5d02 > 3) eq5d02 = 9 .
IF (eq5d03 < 1 OR eq5d03 > 3) eq5d03 = 9 .
IF (eq5d04 < 1 OR eq5d04 > 3) eq5d04 = 9 .
IF (eq5d05 < 1 OR eq5d05 > 3) eq5d05 = 9 .

MISSING VALUE eq5d01 TO eq5d05 (9) .

***********************************************.
* Frecuency tables and Descriptive Statistics *.
***********************************************.

FREQUENCIES
  VARIABLES= eq5d01 eq5d02 eq5d03 eq5d04 eq5d05 .   

DESCRIPTIVES
  VARIABLES=eq5dvas
  /FORMAT=LABELS NOINDEX
  /STATISTICS=MEAN STDDEV MIN MAX .

*****************************************
* SOCIAL TARIFF CALCULATE EQ5D (UTILITY)*
*****************************************.

COMPUTE UTIL5D=0.1502+((eq5d01-1)*0.0897)+((eq5d02-1)*0.1012)+((eq5d03-1)*0.0551)+((eq5d04-1)*0.0596)+((eq5d05-1)*0.0512)

IF (eq5d01=1 AND eq5d02=1 AND eq5d03=1 AND eq5d04=1 AND eq5d05=1) UTIL5D=0  

IF (eq5d01=3 OR eq5d02=3 OR eq5d03=3 OR eq5d04=3 OR eq5d05=3) UTIL5D=UTIL5D+0.2119

COMPUTE UTIL5D=1-UTIL5D

VARIABLE LABEL UTIL5D "UTILIDAD" .

FORMATS UTIL5D (F8.4) .

DESCRIPTIVES
  VARIABLES=UTIL5D
  /STATISTICS=MEAN STDDEV MIN MAX .