******************************************************************************** * STATA Syntax for example of gap analysis ******************************************************************************* *-------------------------------------------------------------------------------* * Open dataset *-------------------------------------------------------------------------------* clear all use "[...]/Gap_Analysis_Sample" // replace [...] with folder where you saved the dataset *------------------------------------------------------------------------------* * Estimate the gap *------------------------------------------------------------------------------* *** Step 1 - Identifying the cost of essential needs * A MEB is already available in the dataset, expressed in per capita monthly term, and differentiated by groups of household size to account for household economies of scale *** Step 2 - Computing the household economic capacity * The computation of the household economic capacity should follow the methodology used for the ECMEN indicator (version excluding assistance). ** Sum food expenditures, value of consumed food from own-production, and non-food expenditures egen PCExp_ECMEN=rowtotal(PC_HHExp_Food_Purch_MN_1M PC_HHExp_Food_Own_MN_1M PC_HHExpNFTotal_Purch_MN_1M), missing // will be missing if all sub-aggregates are missing label var PCExp_ECMEN "Household Economic Capacity per capita - monthly" ** Deduct the value of cash assistance received from WFP and partner humanitarian organizations replace PCExp_ECMEN = PCExp_ECMEN-PC_HHAsstCBTRec_Cons_1M if PC_HHAsstCBTRec_Cons_1M!=. replace PCExp_ECMEN=0 if PCExp_ECMEN<0 // set negative values to zero *** Step 3 - Identifying the gap analysis cohort * In this example the gap analysis group is made of the households with economic capacity below the MEB and who are moderately or severely food insecure based on CARI ** create a variable to identify the cohort gen Gap_ref = PCExp_ECMEN