-
Notifications
You must be signed in to change notification settings - Fork 28
Update rCSI-indicator.sps #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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!
| *** Check individual strategies | ||
|
|
||
| FREQUENCIES VARIABLES=rCSILessQlty rCSIBorrow rCSIMealNb rCSIMealSize rCSIMealAdult | ||
| /FORMAT=NOTABLE | ||
| /STATISTICS=MINIMUM MAXIMUM MEAN. | ||
|
|
||
| *** Harmonize Data Quality Guidance measures | ||
| *** Clean impossible values | ||
|
|
||
| RECODE rCSILessQlty rCSIBorrow rCSIMealNb rCSIMealSize rCSIMealAdult (LOWEST THRU -1 = SYSMIS). | ||
| RECODE rCSILessQlty rCSIBorrow rCSIMealNb rCSIMealSize rCSIMealAdult (8 THRU HIGHEST = SYSMIS). | ||
| EXECUTE. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to move to logical cleaning
| *** Harmonize Data Quality Guidance measures | ||
| *** Check that rCSI is between 0-56 | ||
|
|
||
| DESCRIPTIVES VARIABLES=rCSI | ||
| /STATISTICS=MEAN STDDEV MIN MAX. | ||
|
|
||
| *** Clean any impossible FCS values | ||
|
|
||
| RECODE rCSI (LOWEST THRU -1 = SYSMIS). | ||
| RECODE rCSI (56 THRU HIGHEST = SYSMIS). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the variable construction, this is redundant to apply.
| *** Flagging potential Data Quality issues. If any cases reflected here, refer to the Data Quality Guidance note page 31. This can be found on the VAM Ressource Centre, | ||
| *** Note that having a low rCSI is likely not a data quality issue if the area surveyed is relatively food secure | ||
| *** Note that having a high rCSI can be real if the area surveyed is very food insecure | ||
|
|
||
| COMPUTE rCSI_flag_low = 0. | ||
| IF (rCSI LE 3) rCSI_flag_low = 1. | ||
| VARIABLE LABELS rCSI_flag_low "rCSI has low values that could be a Data Quality issue unless the population surveyed is generally food secure. Flag to team leader if poor or boderline FCS". | ||
| VALUE LABELS rCSI_flag_low | ||
| 0 "No" | ||
| 1 "Yes". | ||
|
|
||
| COMPUTE rCSI_flag_high = 0. | ||
| IF (rCSI GE 42) rCSI_flag_high = 1. | ||
| VARIABLE LABELS rCSI_flag_high "rCSI has high values that could be a Data Quality issue unless the population surveyed is generally food insecure. Flag to team leader if acceptable FCS, low levels of livelihood coping etc". | ||
| VALUE LABELS rCSI_flag_high | ||
| 0 "No" | ||
| 1 "Yes". | ||
|
|
||
| *** 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 | ||
|
|
||
| FREQUENCIES VARIABLES=rCSI_flag_low rCSI_flag_high | ||
| /ORDER=ANALYSIS. | ||
|
|
||
| *** Check distribution of final categories | ||
|
|
||
| FREQUENCIES VARIABLES=rCSI | ||
| /FORMAT=NOTABLE | ||
| /STATISTICS=MINIMUM MAXIMUM MEAN. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to include in outlier detection
|
|
||
| *** Optional: Compute the same variable to be used directly for IPC analysis (referring to IPC phases) | ||
|
|
||
| RECODE rCSI (LOWEST THRU 3 = 1) (4 THRU 18 = 2) (19 THRU HIGHEST = 3) INTO rCSI_IPC. | ||
| VARIABLE LABELS rCSI_IPC "Official IPC Classification for rCSI". | ||
| VALUE LABELS rCSI_IPC | ||
| 1 "rCSI [0-3] - IPC Phase 1" | ||
| 2 "rCSI [4-18] - IPC Phase 2" | ||
| 3 "rCSI [>=19] - IPC Phase 3-5". | ||
| EXECUTE. | ||
|
|
||
| *** Check distribution of final categories | ||
|
|
||
| FREQUENCIES VARIABLES=rCSI_IPC | ||
| /ORDER=ANALYSIS. | ||
|
|
||
| *** Optional: Compute the same variable to be used directly for IPC analysis (referring to IPC phases) - indicating high values (potential Phase 4) | ||
|
|
||
| RECODE rCSI (LOWEST THRU 3 = 1) (4 THRU 18 = 2) (19 THRU 42 = 3) (43 THRU HIGHEST = 4) INTO rCSI_IPC_HighValues. | ||
| VARIABLE LABELS rCSI_IPC_HighValues "Informal IPC Classification indicating high values (potential Phase 4)". | ||
| VALUE LABELS rCSI_IPC_HighValues | ||
| 1 "rCSI [0-3] - IPC Phase 1" | ||
| 2 "rCSI [4-18] - IPC Phase 2" | ||
| 3 "rCSI [19-42] - IPC Phase 3" | ||
| 4 "rCSI [>42] - IPC Phase 4". | ||
| EXECUTE. | ||
|
|
||
| *** Check distribution of final categories | ||
|
|
||
| FREQUENCIES VARIABLES=rCSI_IPC_HighValues | ||
| /ORDER=ANALYSIS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to include in IPC analysis dedicated script.
No description provided.