* Encoding: UTF-8. ******************************************************************************** * SPSS Syntax for example of gap analysis ******************************************************************************* *-------------------------------------------------------------------------------* * Open dataset *-------------------------------------------------------------------------------* GET FILE='[...]\Gap_Analysis_Sample.sav'. /* 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. COMPUTE PCExp_ECMEN=SUM.1(PC_HHExp_Food_Purch_MN_1M, PC_HHExp_Food_Own_MN_1M, PC_HHExpNFTotal_Purch_MN_1M). /* at least an argument must be non-missing. VARIABLE LABELS PCExp_ECMEN 'Household Economic Capacity per capita - monthly'. EXECUTE. ** Deduct the value of cash assistance received from WFP and partner humanitarian organizations. RECODE PC_HHAsstCBTRec_Cons_1M (SYSMIS=0). /* code missing assistance as zero. COMPUTE PCExp_ECMEN = PCExp_ECMEN-PC_HHAsstCBTRec_Cons_1M. IF (PCExp_ECMEN<0) PCExp_ECMEN=0. /* set negative values to zero. EXECUTE. *** 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. COMPUTE Gap_ref = (PCExp_ECMEN