Skip to content

Commit 9bc91a1

Browse files
Merge pull request #143 from WFP-VAM/cnwalker21-patch-2
Create CARI-ECMEN.sps
2 parents a8f792e + 7e15400 commit 9bc91a1

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

  • Indicators/Consolidated-Approach-to-Reporting-Indicators-of-Food-Security
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
* Encoding: UTF-8.
2+
3+
*** ----------------------------------------------------------------------------------------------------------------*
4+
5+
*** WFP Standard Scripts
6+
*** Consolidated Approach for Reporting Indicators of Food Security (CARI)
7+
*** CALCULATE CARI using FCS, rCSI, LCS and ECMEN
8+
9+
*** ----------------------------------------------------------------------------------------------------------------*
10+
11+
*Note that there are two ways to calculate CARI - using ECMEN or FES. This syntax file is for calculating CARI using ECMEN (version excluding assistance). However, please navigate to the script for CARI using FES as relevant.
12+
* Guidance on CARI can be found here: https://www.wfp.org/publications/consolidated-approach-reporting-indicators-food-security-cari-guidelines.
13+
14+
*Note: this syntax file is based on the assumption that the scripts of the various indicators that compose this version of the CARI (FCS, rCSI, LCS-FS, ECMEN) have already been run.
15+
* You can find these scripts here: https://github.com/WFP-VAM/RAMResourcesScripts/tree/main/Indicators.
16+
*The following variables should have been defined before running this file:
17+
FCSCat21 and/or FCSCat28
18+
rCSI
19+
Max_coping_behaviourFS
20+
ECMEN_exclAsst
21+
ECMEN_exclAsst_SMEB.
22+
23+
*-------------------------------------------------------------------------------*
24+
* Process FCS for CARI computation
25+
*-------------------------------------------------------------------------------*
26+
27+
* Important note: pay attention to the threshold used by your CO when selecting the syntax (FCSCat21 or FCSCat28). In this example, the 21-35 treshold is used.
28+
29+
*** Create FCS_4pt for CARI calculation.
30+
Recode FCSCat21 (1=4) (2=3) (3=1) INTO FCS_4pt.
31+
Variable labels FCS_4pt '4pt FCG'.
32+
Value labels FCS_4pt 1.00 'Acceptable' 3.00 'Borderline' 4.00 'Poor'.
33+
EXECUTE.
34+
35+
*-------------------------------------------------------------------------------*
36+
* Combine rCSI with FCS_4pt for CARI calculation (current consumption)
37+
*-------------------------------------------------------------------------------*
38+
39+
Do if (rCSI >= 4).
40+
Recode FCS_4pt (1=2).
41+
End if.
42+
EXECUTE.
43+
44+
Value labels FCS_4pt 1.00 'Acceptable' 2.00 ' Acceptable and rCSI>4' 3.00 'Borderline' 4.00 'Poor'.
45+
EXECUTE.
46+
47+
*-------------------------------------------------------------------------------*
48+
* Process ECMEN for CARI computation
49+
*-------------------------------------------------------------------------------*
50+
51+
***Recode ECMEN.
52+
IF (ECMEN_exclAsst=1) ECMEN_MEB=1.
53+
IF (ECMEN_exclAsst=0 & ECMEN_exclAsst_SMEB=1) ECMEN_MEB=2.
54+
IF (ECMEN_exclAsst=0 & ECMEN_exclAsst_SMEB=0) ECMEN_MEB=3.
55+
56+
***Recode the `ECMEN_MEB' variable into a 4pt scale for CARI console.
57+
Recode ECMEN_MEB (1=1) (2=3) (3=4) INTO ECMEN_class_4pt.
58+
Variable labels ECMEN_class_4pt 'ECMEN 4pt'.
59+
EXECUTE.
60+
61+
Value labels ECMEN_class_4pt 1.00 'Least vulnerable' 3.00 'Vulnerable' 4.00 'Highly vulnerable'.
62+
EXECUTE.
63+
64+
*-------------------------------------------------------------------------------*
65+
* Computation of CARI
66+
*-------------------------------------------------------------------------------*
67+
68+
Compute Mean_coping_capacity_ECMEN = MEAN (Max_coping_behaviourFS, ECMEN_class_4pt).
69+
Compute CARI_unrounded_ECMEN = MEAN (FCS_4pt, Mean_coping_capacity_ECMEN).
70+
Compute CARI_ECMEN = RND (CARI_unrounded_ECMEN).
71+
Variable labels CARI_ECMEN 'CARI classification (using ECMEN)'.
72+
EXECUTE.
73+
74+
Value labels CARI_ECMEN 1 'Food secure' 2 'Marginally food secure' 3 'Moderately food insecure' 4 'Severely food insecure'.
75+
EXECUTE.
76+
77+
Frequencies CARI_ECMEN.
78+
79+
***create population distribution table, to to explore how the domains interact within the different food security categories.
80+
CTABLES
81+
/VLABELS VARIABLES= ECMEN_class_4pt FCS_4pt Max_coping_behaviourFS DISPLAY=LABEL
82+
/TABLE ECMEN_class_4pt [C] BY FCS_4pt [C] > Max_coping_behaviourFS [C][ROWPCT.COUNT PCT40.1]
83+
/CATEGORIES VARIABLES= ECMEN_class_4pt ORDER=A KEY=VALUE EMPTY=EXCLUDE
84+
/CATEGORIES VARIABLES=FCS_4pt Max_coping_behaviourFS ORDER=A KEY=VALUE EMPTY=INCLUDE.
85+
86+
*-------------------------------------------------------------------------------*
87+
* Drop variables that are not needed
88+
*-------------------------------------------------------------------------------*
89+
90+
DELETE VARIABLES ECMEN_MEB Mean_coping_capacity_ECMEN CARI_unrounded_ECMEN.
91+
EXECUTE.

0 commit comments

Comments
 (0)