Skip to content

Commit a8f792e

Browse files
Merge pull request #142 from WFP-VAM/cnwalker21-patch-1
Create CARI-FES.sps
2 parents d6361a5 + 54d3d72 commit a8f792e

1 file changed

Lines changed: 74 additions & 0 deletions

File tree

  • Indicators/Consolidated-Approach-to-Reporting-Indicators-of-Food-Security
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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 FES
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 FES. However, please navigate to the script for CARI using ECMEN 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, FES) 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+
FES
21+
Foodexp_4pt.
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+
* Computation of CARI
49+
*-------------------------------------------------------------------------------*
50+
51+
Compute Mean_coping_capacity_FES = MEAN(Max_coping_behaviourFS, Foodexp_4pt).
52+
Compute CARI_unrounded_FES = MEAN(FCS_4pt, Mean_coping_capacity_FES).
53+
Compute CARI_FES = RND(CARI_unrounded_FES).
54+
EXECUTE.
55+
56+
Value labels CARI_FES 1 'Food secure' 2 'Marginally food secure' 3 'Moderately food insecure' 4 'Severely food insecure'.
57+
EXECUTE.
58+
59+
Frequencies CARI_FES.
60+
61+
***create population distribution table, to to explore how the domains interact within the different food security categories
62+
63+
CTABLES
64+
/VLABELS VARIABLES=Foodexp_4pt FCS_4pt Max_coping_behaviourFS DISPLAY=LABEL
65+
/TABLE Foodexp_4pt [C] BY FCS_4pt [C] > Max_coping_behaviourFS [C][ROWPCT.COUNT PCT40.1]
66+
/CATEGORIES VARIABLES=Foodexp_4pt ORDER=A KEY=VALUE EMPTY=EXCLUDE
67+
/CATEGORIES VARIABLES=FCS_4pt Max_coping_behaviourFS ORDER=A KEY=VALUE EMPTY=INCLUDE.
68+
69+
*-------------------------------------------------------------------------------*
70+
* Drop variables that are not needed
71+
*-------------------------------------------------------------------------------*
72+
73+
DELETE VARIABLES Mean_coping_capacity_FES CARI_unrounded_FES.
74+
EXECUTE.

0 commit comments

Comments
 (0)