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 further review

Comment on lines +22 to +23
*** Note that the computation of the ECMEN requires having already established a Minimum Expenditure Basket (MEB)
**************************************************************************** NOT ACCORDING TO THE GUIDANCE. CHECK WITH LENA FOR COHERENT MESSAGING
Copy link
Contributor

Choose a reason for hiding this comment

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

Revise

Comment on lines +73 to +81
***Converting system missing of the food expenditure to 0

recode HHExpFCer_Purch_MN_7D HHExpFCer_GiftAid_MN_7D HHExpFCer_Own_MN_7D HHExpFTub_Purch_MN_7D HHExpFTub_GiftAid_MN_7D HHExpFTub_Own_MN_7D HHExpFPuls_Purch_MN_7D
HHExpFPuls_GiftAid_MN_7D HHExpFPuls_Own_MN_7D HHExpFVeg_Purch_MN_7D HHExpFVeg_GiftAid_MN_7D HHExpFVeg_Own_MN_7D HHExpFFrt_Purch_MN_7D HHExpFFrt_GiftAid_MN_7D HHExpFFrt_Own_MN_7D
HHExpFAnimMeat_Purch_MN_7D HHExpFAnimMeat_GiftAid_MN_7D HHExpFAnimMeat_Own_MN_7D HHExpFAnimFish_Purch_MN_7D HHExpFAnimFish_GiftAid_MN_7D HHExpFAnimFish_Own_MN_7D HHExpFFats_Purch_MN_7D
HHExpFFats_GiftAid_MN_7D HHExpFFats_Own_MN_7D HHExpFDairy_Purch_MN_7D HHExpFDairy_GiftAid_MN_7D HHExpFDairy_Own_MN_7D HHExpFEgg_Purch_MN_7D HHExpFEgg_GiftAid_MN_7D HHExpFEgg_Own_MN_7D
HHExpFSgr_Purch_MN_7D HHExpFSgr_GiftAid_MN_7D HHExpFSgr_Own_MN_7D HHExpFCond_Purch_MN_7D HHExpFCond_GiftAid_MN_7D HHExpFCond_Own_MN_7D HHExpFBev_Purch_MN_7D HHExpFBev_GiftAid_MN_7D
HHExpFBev_Own_MN_7D HHExpFOut_Purch_MN_7D HHExpFOut_GiftAid_MN_7D HHExpFOut_Own_MN_7D (sysmis=0).
execute.
Copy link
Contributor

Choose a reason for hiding this comment

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

This approach is valid only if the question is skipped due to relevancy constraint in the questionnaire.
Otherwise we're performing a data imputation action which doesn't belong to indicator calculation.

Suggest to add a note on this to the text:
"Note replacing with 0 is performed under the assumption of reported missing values when a question is skipped. If there are reasons to assume this is a non-zero value, applying a data imputation technique is recommended"

Comment on lines +84 to +93
*** Check expenditures to get an overview of the data and potential outliers

FREQUENCIES VARIABLES= HHExpFCer_Purch_MN_7D HHExpFCer_GiftAid_MN_7D HHExpFCer_Own_MN_7D HHExpFTub_Purch_MN_7D HHExpFTub_GiftAid_MN_7D HHExpFTub_Own_MN_7D HHExpFPuls_Purch_MN_7D
HHExpFPuls_GiftAid_MN_7D HHExpFPuls_Own_MN_7D HHExpFVeg_Purch_MN_7D HHExpFVeg_GiftAid_MN_7D HHExpFVeg_Own_MN_7D HHExpFFrt_Purch_MN_7D HHExpFFrt_GiftAid_MN_7D HHExpFFrt_Own_MN_7D
HHExpFAnimMeat_Purch_MN_7D HHExpFAnimMeat_GiftAid_MN_7D HHExpFAnimMeat_Own_MN_7D HHExpFAnimFish_Purch_MN_7D HHExpFAnimFish_GiftAid_MN_7D HHExpFAnimFish_Own_MN_7D HHExpFFats_Purch_MN_7D
HHExpFFats_GiftAid_MN_7D HHExpFFats_Own_MN_7D HHExpFDairy_Purch_MN_7D HHExpFDairy_GiftAid_MN_7D HHExpFDairy_Own_MN_7D HHExpFEgg_Purch_MN_7D HHExpFEgg_GiftAid_MN_7D HHExpFEgg_Own_MN_7D
HHExpFSgr_Purch_MN_7D HHExpFSgr_GiftAid_MN_7D HHExpFSgr_Own_MN_7D HHExpFCond_Purch_MN_7D HHExpFCond_GiftAid_MN_7D HHExpFCond_Own_MN_7D HHExpFBev_Purch_MN_7D HHExpFBev_GiftAid_MN_7D
HHExpFBev_Own_MN_7D HHExpFOut_Purch_MN_7D HHExpFOut_GiftAid_MN_7D HHExpFOut_Own_MN_7D
/FORMAT=NOTABLE
/STATISTICS=MINIMUM MAXIMUM MEAN.
Copy link
Contributor

Choose a reason for hiding this comment

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

This belongs to outlier detection and statistical cleaning.
Suggest to report more statistics, such as:
EXAMINE VARIABLES=[VARNAME]
/PLOT BOXPLOT
/COMPARE GROUPS
/PERCENTILES(5,10,25,50,75,90,95) HAVERAGE
/STATISTICS DESCRIPTIVES EXTREME
/CINTERVAL 95
/MISSING LISTWISE
/NOTOTAL.

Comment on lines +95 to +103
*** ----------------------------------------------------------------------------------------------------


*** Important step
*** After getting the overview of the raw data, it is now recommended to use the standard cleaning syntax found on the VAM Resource Centre to do the standard cleaning. Following this, additional contextual cleaning can
be done if neccessary. It is not recommended to move to the below step until the data has been cleaned


*** ----------------------------------------------------------------------------------------------------
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 clearer links to the cleaning processes/documentation (e.g.: hyperlink)

Comment on lines +158 to +164
***Converting system missing of the non-food expenditure to 0

recode HHExpNFHyg_Purch_MN_1M HHExpNFHyg_GiftAid_MN_1M HHExpNFTransp_Purch_MN_1M HHExpNFTransp_Purch_MN_1M HHExpNFTransp_GiftAid_MN_1M
HHExpNFFuel_Purch_MN_1M HHExpNFFuel_GiftAid_MN_1M HHExpNFWat_Purch_MN_1M HHExpNFWat_GiftAid_MN_1M HHExpNFElec_Purch_MN_1M HHExpNFElec_GiftAid_MN_1M
HHExpNFEnerg_Purch_MN_1M HHExpNFEnerg_GiftAid_MN_1M HHExpNFDwelSer_Purch_MN_1M HHExpNFDwelSer_GiftAid_MN_1M HHExpNFPhone_Purch_MN_1M
HHExpNFPhone_GiftAid_MN_1M HHExpNFRecr_Purch_MN_1M HHExpNFRecr_GiftAid_MN_1M HHExpNFAlcTobac_Purch_MN_1M HHExpNFAlcTobac_GiftAid_MN_1M (sysmis=0).
execute.
Copy link
Contributor

Choose a reason for hiding this comment

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

See comment above on data imputation.
Ok to keep.

*** Long-term non-food expenditures, 6 month recall (cash/credit)

COMPUTE HHExpNFTotal_Purch_MN_6M = HHExpNFMedServ_Purch_MN_6M + HHExpNFMedGood_Purch_MN_6M + HHExpNFCloth_Purch_MN_6M + HHExpNFEduFee_Purch_MN_6M + HHExpNFEduGood_Purch_MN_6M +
HHExpNFRent_Purch_MN_6M + HHExpNFHHSoft_Purch_MN_6M + HHExpNFHHMaint_Purch_MN_6M. /* careful with rent: should include only if also incuded in MEB.*****************************************************************************************
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 a reference for the rationale with which rent could/should be included.

COMPUTE HHAsstCBTRec = SUM(HHAsstWFPCBTRecTot, HHAsstUNNGOCBTRecTot).
*** Sum the amount of cash assistancef received by WFP and other humanitarian partners (UN Agencies and NGOs) - do not include cash received from government, other organizations, and other households as this will not be deducted

recode HHAsstWFPCBTRecTot HHAsstUNNGOCBTRecTot (sysmis=0).
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it always safe to assume that missing = 0?


* Deduct the cash assistance from the hh economic capacity.
RECODE HHAsstCBTRec_Cons_1M (sysmis=0). /* code missing assistance as zero.
*** Deduct the cash assistance from the household economic capacity. If missing, replace by 0 (= no assistance received)
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 rephrase "If Assistance missing, replace by 0".
Same as above, is it safe to assume that missing = 0?

*** Define variable indicating if per capita Household Economic Capacity is equal or greater than MEB

* Define variable indicating if PC Household Economic Capacity is equal or greater than MEB.
IF NOT(SYSMIS(PCExp_ECMEN) AND SYSMIS(MEB)) ECMEN_exclAsst=PCExp_ECMEN > MEB. /* Make sure to rename MEB variable as appropriate.
Copy link
Contributor

Choose a reason for hiding this comment

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

While the guidance states "equal or greater" the function checks only if greater.


* Define variable indicating if PC Household Economic Capacity is equal or greater than SMEB.
IF NOT(SYSMIS(PCExp_ECMEN) AND SYSMIS(SMEB)) ECMEN_exclAsst_SMEB=PCExp_ECMEN > SMEB. /* Make sure to rename MEB variable as appropriate.
IF NOT(SYSMIS(PCExp_ECMEN) AND SYSMIS(SMEB)) ECMEN_exclAsst_SMEB=PCExp_ECMEN > SMEB. /* Make sure to rename SMEB variable as appropriate.
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to "equal or greater"

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.

2 participants