Skip to content

Conversation

@odai-saleh
Copy link

No description provided.

Copy link
Contributor

@ValerioGiuffrida ValerioGiuffrida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@odai-saleh for your review

Comment on lines +39 to +44
*** Harmonize Data Quality Guidance measures
*** Clean impossible values

RECODE HDDSStapCer HDDSStapRoot HDDSPulse HDDSDairy HDDSPrMeat HDDSPrFish HDDSPrEggs HDDSVeg HDDSFruit HDDSFat HDDSSugar HDDSCond (LOWEST THRU -1 = SYSMIS).
RECODE HDDSStapCer HDDSStapRoot HDDSPulse HDDSDairy HDDSPrMeat HDDSPrFish HDDSPrEggs HDDSVeg HDDSFruit HDDSFat HDDSSugar HDDSCond (2 THRU HIGHEST = SYSMIS).
EXECUTE.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to data cleaning procedure?

Comment on lines +63 to +67
*** Clean any impossible HDDS values

RECODE HDDS (LOWEST THRU -1 = SYSMIS).
RECODE HDDS (13 THRU HIGHEST = SYSMIS).
EXECUTE.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to statistical cleaning.
Given steps taken above, it should be programmatically impossible to get impossible HDDS values, so this could also be removed.

Comment on lines +69 to +164
*** Flagging potential Data Quality issues. If any cases reflected here, refer to the Data Quality Guidance note page 37. This can be found on the VAM Ressource Centre,
*** Note that while the HDDS data can be validated using FCS data, the opposite is not possible since HDDS considers food consumed in small quantities and anyone in
the household (not the majority like FCS).

COMPUTE HDDS_flag_zero = 0.
IF (HDDS = 0) HDDS_flag_zero = 1.
VARIABLE LABELS HDDS_flag_zero "HDDS has a zero value, meaning that the HH did not eat anything in the past 24 hours. Flag to team leader".
VALUE LABELS HDDS_flag_zero
0 "No"
1 "Yes".

COMPUTE HDDS_flag_low = 0.
IF (HDDS LE 2) HDDS_flag_low = 1.
VARIABLE LABELS HDDS_flag_low "HDDS has low values. Flag to team leader if acceptable FCS".
VALUE LABELS HDDS_flag_low
0 "No"
1 "Yes".

COMPUTE HDDS_flag_high = 0.
IF (HDDS GE 10) HDDS_flag_high = 1.
VARIABLE LABELS HDDS_flag_high "HDDS has high values. Flag to team leader if poor or borderline FCS".
VALUE LABELS HDDS_flag_high
0 "No"
1 "Yes".

COMPUTE HDDS_flag_cereal = 0.
IF (FCSStap = 7 AND HDDSStapCer = 0 AND HDDSStapRoot = 0) HDDS_flag_cereal = 1.
VARIABLE LABELS HDDS_flag_cereal "HH consumed cereal in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_cereal
0 "No"
1 "Yes".

COMPUTE HDDS_flag_pulses = 0.
IF (FCSPulse = 7 AND HDDSPulse = 0) HDDS_flag_pulses = 1.
VARIABLE LABELS HDDS_flag_pulses "HH consumed pulses in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_pulses
0 "No"
1 "Yes".

COMPUTE HDDS_flag_dairy = 0.
IF (FCSDairy = 7 AND HDDSDairy = 0) HDDS_flag_dairy = 1.
VARIABLE LABELS HDDS_flag_dairy "HH consumed dairy in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_dairy
0 "No"
1 "Yes".

COMPUTE HDDS_flag_protein = 0.
IF (FCSPr = 7 AND HDDSPrMeat = 0 AND HDDSPrEggs = 0 AND HDDSPrFish = 0) HDDS_flag_protein = 1.
VARIABLE LABELS HDDS_flag_protein "HH consumed protein in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_protein
0 "No"
1 "Yes".

COMPUTE HDDS_flag_veg = 0.
IF (FCSVeg = 7 AND HDDSVeg = 0) HDDS_flag_veg = 1.
VARIABLE LABELS HDDS_flag_veg "HH consumed vegetables in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_veg
0 "No"
1 "Yes".

COMPUTE HDDS_flag_fruit = 0.
IF (FCSFruit = 7 AND HDDSFruit = 0) HDDS_flag_fruit = 1.
VARIABLE LABELS HDDS_flag_fruit "HH consumed fruit in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_fruit
0 "No"
1 "Yes".

COMPUTE HDDS_flag_fat = 0.
IF (FCSFat = 7 AND HDDSFat = 0) HDDS_flag_fat = 1.
VARIABLE LABELS HDDS_flag_fat "HH consumed fat in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_fat
0 "No"
1 "Yes".

COMPUTE HDDS_flag_sugar = 0.
IF (FCSSugar = 7 AND HDDSSugar = 0) HDDS_flag_sugar = 1.
VARIABLE LABELS HDDS_flag_sugar "HH consumed sugar in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_sugar
0 "No"
1 "Yes".

COMPUTE HDDS_flag_cond = 0.
IF (FCSCond = 7 AND HDDSCond = 0) HDDS_flag_cond = 1.
VARIABLE LABELS HDDS_flag_cond "HH consumed condiments in FCS module but not in HDDS module. Flag issue to team leader".
VALUE LABELS HDDS_flag_cond
0 "No"
1 "Yes".

Recode HDDS (lowest thru 2=1) (3 thru 4=2) (5 thru highest = 3) into HDDSCat_IPC.
Value labels HDDSCat_IPC 1 '0-2 food groups (phase 4 to 5)' 2 '3-4 food groups (phase 3)' 3 '5-12 food groups (phase 1 to 2)'.
Variable labels HDDSCat_IPC 'HDDS categories using IPC severity scale'.
*** Check flagged cases
*** If it is found that flags might be data quality issues (i.e. high number of flag_low in very food insecure areas or flag_high in seeminly food secure areas),
it is recommended to do a crosstab to see the frequency by enumerator to understand if flags are coming from the same few enumerators. Cases of flag_zero
will be impossible in most contexts

FREQUENCIES VARIABLES = HDDS_flag_zero HDDS_flag_low HDDS_flag_high HDDS_flag_cereal HDDS_flag_pulses HDDS_flag_dairy HDDS_flag_protein
HDDS_flag_veg HDDS_flag_fruit HDDS_flag_fat HDDS_flag_sugar
/ORDER = ANALYSIS.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to outlier detection, analysis or cleaning (TBD)

Comment on lines +166 to 176
*** Optional: Compute the same variable to be used directly for IPC analysis (referring to IPC phases)

IF (HDDS LE 2) HDDSCat_IPC = 3.
IF (HDDS = 3 OR HDDS = 4) HDDSCat_IPC = 2.
IF (HDDS GE 5) HDDSCat_IPC = 1.
VARIABLE LABELS HDDSCat_IPC 'HDDS categories using the IPC severity scale'.
VALUE LABELS HDDSCat_IPC
1 "5-12 food groups (IPC phase 1 to 2)"
2 "3-4 food groups (IPC phase 3)"
3 "0-2 food groups (IPC phase 4 to 5)".
EXECUTE.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest to include the IPC calculations in a dedicated script.
That script would require the execution of the upstream scripts that calculate indicators (HDDS, Share of food expenditures,...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants