Skip to content

Commit 4803b67

Browse files
authored
Merge pull request #144 from WFP-VAM/CARI
New CARI scripts in Stata and Sample Data
2 parents 9bc91a1 + fb1b1cc commit 4803b67

4 files changed

Lines changed: 167 additions & 963 deletions

File tree

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
*** ----------------------------------------------------------------------------------------------------------------*
2+
3+
*** WFP Standard Scripts
4+
*** Consolidated Approach for Reporting Indicators of Food Security (CARI)
5+
*** CALCULATE CARI using FCS, rCSI, LCS and ECMEN
6+
7+
*** ----------------------------------------------------------------------------------------------------------------*
8+
/*
9+
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.
10+
Guidance on CARI can be found here: https://www.wfp.org/publications/consolidated-approach-reporting-indicators-food-security-cari-guidelines.
11+
12+
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.
13+
You can find these scripts here: https://github.com/WFP-VAM/RAMResourcesScripts/tree/main/Indicators.
14+
The following variables should have been defined before running this file:
15+
FCSCat21 and/or FCSCat28
16+
rCSI
17+
Max_coping_behaviourFS
18+
ECMEN_exclAsst
19+
ECMEN_exclAsst_SMEB.
20+
*/
21+
22+
23+
*-------------------------------------------------------------------------------*
24+
* Process FCS for CARI computation
25+
*-------------------------------------------------------------------------------*
26+
27+
* Create FCS_4pt for CARI calculation.
28+
recode FCSCat21 (1=4) (2=3) (3=1), generate(FCS_4pt)
29+
label variable FCS_4pt "4pt FCG"
30+
label define FCS_4pt 1 "Acceptable" 3 "Borderline" 4 "Poor"
31+
label values FCS_4pt FCS_4pt
32+
33+
*-------------------------------------------------------------------------------*
34+
* Combine rCSI with FCS_4pt for CARI calculation (current consumption)
35+
*-------------------------------------------------------------------------------*
36+
37+
recode FCS_4pt (1=2) if rCSI >= 4
38+
label define FCS_4pt_lbl 1 "Acceptable" 2 "Acceptable and rCSI>4" 3 "Borderline" 4 "Poor"
39+
label values FCS_4pt FCS_4pt_lbl
40+
41+
*-------------------------------------------------------------------------------*
42+
* Process ECMEN for CARI computation
43+
*-------------------------------------------------------------------------------*
44+
45+
* Recode ECMEN.
46+
gen ECMEN_MEB = .
47+
replace ECMEN_MEB = 1 if ECMEN_exclAsst == 1
48+
replace ECMEN_MEB = 2 if ECMEN_exclAsst == 0 & ECMEN_exclAsst_SMEB == 1
49+
replace ECMEN_MEB = 3 if ECMEN_exclAsst == 0 & ECMEN_exclAsst_SMEB == 0
50+
51+
* Recode the `ECMEN_MEB' variable into a 4pt scale for CARI console.
52+
recode ECMEN_MEB (1=1) (2=3) (3=4), generate(ECMEN_class_4pt)
53+
label variable ECMEN_class_4pt "ECMEN 4pt"
54+
label define ECMEN_class_4pt_lbl 1 "Least vulnerable" 3 "Vulnerable" 4 "Highly vulnerable"
55+
label values ECMEN_class_4pt ECMEN_class_4pt_lbl
56+
57+
*-------------------------------------------------------------------------------*
58+
* Computation of CARI
59+
*-------------------------------------------------------------------------------*
60+
61+
egen Mean_coping_capacity_ECMEN = rowmean(Max_coping_behaviourFS ECMEN_class_4pt)
62+
egen CARI_unrounded_ECMEN = rowmean(FCS_4pt Mean_coping_capacity_ECMEN)
63+
gen CARI_ECMEN = round(CARI_unrounded_ECMEN)
64+
label variable CARI_ECMEN "CARI classification (using ECMEN)"
65+
label define CARI_ECMEN_lbl 1 "Food secure" 2 "Marginally food secure" 3 "Moderately food insecure" 4 "Severely food insecure"
66+
label values CARI_ECMEN CARI_ECMEN_lbl
67+
68+
tabulate CARI_ECMEN
69+
70+
* Create population distribution table, to explore how the domains interact within the different food security categories
71+
table ( ECMEN_class_4pt) (FCS_4pt Max_coping_behaviourFS ), statistic(percent, across(Max_coping_behaviourFS)) nototal
72+
73+
*-------------------------------------------------------------------------------*
74+
* Drop variables that are not needed
75+
*-------------------------------------------------------------------------------*
76+
77+
drop ECMEN_MEB Mean_coping_capacity_ECMEN CARI_unrounded_ECMEN
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
*** ----------------------------------------------------------------------------------------------------------------*
2+
3+
*** WFP Standard Scripts
4+
*** Consolidated Approach for Reporting Indicators of Food Security (CARI)
5+
*** CALCULATE CARI using FCS, rCSI, LCS and FES
6+
7+
*** ----------------------------------------------------------------------------------------------------------------*
8+
/*
9+
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.
10+
Guidance on CARI can be found here: https://www.wfp.org/publications/consolidated-approach-reporting-indicators-food-security-cari-guidelines.
11+
12+
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.
13+
You can find these scripts here: https://github.com/WFP-VAM/RAMResourcesScripts/tree/main/Indicators.
14+
The following variables should have been defined before running this file:
15+
FCSCat21 and/or FCSCat28
16+
rCSI
17+
Max_coping_behaviourFS
18+
FES
19+
Foodexp_4pt.
20+
*/
21+
22+
*-------------------------------------------------------------------------------*
23+
* Process FCS for CARI computation
24+
*-------------------------------------------------------------------------------*
25+
26+
* Create FCS_4pt for CARI calculation.
27+
recode FCSCat21 (1=4) (2=3) (3=1), generate(FCS_4pt)
28+
label variable FCS_4pt "4pt FCG"
29+
label define FCS_4pt 1 "Acceptable" 3 "Borderline" 4 "Poor"
30+
label values FCS_4pt FCS_4pt
31+
32+
*-------------------------------------------------------------------------------*
33+
* Combine rCSI with FCS_4pt for CARI calculation (current consumption)
34+
*-------------------------------------------------------------------------------*
35+
36+
recode FCS_4pt (1=2) if rCSI >= 4
37+
label define FCS_4pt_lbl 1 "Acceptable" 2 "Acceptable and rCSI>4" 3 "Borderline" 4 "Poor"
38+
label values FCS_4pt FCS_4pt_lbl
39+
40+
*-------------------------------------------------------------------------------*
41+
* Computation of CARI
42+
*-------------------------------------------------------------------------------*
43+
44+
egen Mean_coping_capacity_FES = rowmean(Max_coping_behaviourFS Foodexp_4pt)
45+
egen CARI_unrounded_FES = rowmean(FCS_4pt Mean_coping_capacity_FES)
46+
gen CARI_FES = round(CARI_unrounded_FES)
47+
label variable CARI_FES "CARI classification (using FES)"
48+
label define CARI_FES_lbl 1 "Food secure" 2 "Marginally food secure" 3 "Moderately food insecure" 4 "Severely food insecure"
49+
label values CARI_FES CARI_FES_lbl
50+
51+
tabulate CARI_FES
52+
53+
* Create population distribution table, to explore how the domains interact within the different food security categories
54+
table (Foodexp_4pt) (FCS_4pt Max_coping_behaviourFS ), statistic(percent, across(Max_coping_behaviourFS)) nototal
55+
56+
*-------------------------------------------------------------------------------*
57+
* Drop variables that are not needed
58+
*-------------------------------------------------------------------------------*
59+
drop Mean_coping_capacity_FES CARI_unrounded_FES

0 commit comments

Comments
 (0)