-
Notifications
You must be signed in to change notification settings - Fork 28
Update LCS-FS-indicator.sps #203
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!
| *** Harmonize Data Quality Guidance measures | ||
| *** Check individual strategies. Check for missing values or non-standard values. Check for high usage of N/A. It is recommended to check this by enumerator. If this is the case, refer to the Data Quality Guidance | ||
|
|
||
| VARIABLE LABELS emergency_coping_FS 'Did the HH engage in emergency coping strategies?'. | ||
| FREQUENCIES Lcs_stress_DomAsset Lcs_stress_Utilities Lcs_stress_Saving Lcs_stress_BorrowCash Lcs_crisis_ProdAssets Lcs_crisis_Health | ||
| Lcs_crisis_OutSchool Lcs_em_ResAsset Lcs_em_Begged Lcs_em_IllegalAct. |
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 and/or logical cleaning.
| EXECUTE. | ||
|
|
||
| * this variable counts the strategies with valid (i.e. non missing) values - normally it should be equal to 10 for all respondents. | ||
| COMPUTE temp_nonmiss_number=NVALID(Lcs_stress_DomAsset, Lcs_stress_Utilities , Lcs_stress_Saving , Lcs_stress_BorrowCash , Lcs_crisis_ProdAssets , Lcs_crisis_Health , Lcs_crisis_OutSchool , Lcs_em_ResAsset , Lcs_em_Begged , Lcs_em_IllegalAct). |
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.
I believe missing value / completeness check is still needed.
| *** Reminder: this is an example of four stress, three crisis and three emergency strategies. You need to replace with the strategies selected for your assessment | ||
|
|
||
| * COPING behaviour | ||
| COMPUTE Stress_coping_FS = 0. | ||
| IF (Lcs_stress_DomAsset = 20 OR Lcs_stress_DomAsset = 30 OR Lcs_stress_Utilities = 20 OR Lcs_stress_Utilities = 30 OR Lcs_stress_Saving = 20 OR Lcs_stress_Saving = 30 OR Lcs_stress_BorrowCash = 20 OR Lcs_stress_BorrowCash = 30) Stress_coping_FS = 2. | ||
| EXECUTE. | ||
|
|
||
| *----------------------------------------------------------------------------------------------------------------------------------------------------------------* | ||
| COMPUTE Crisis_coping_FS = 0. | ||
| IF (Lcs_crisis_ProdAssets = 20 OR Lcs_crisis_ProdAssets = 30 OR Lcs_crisis_Health = 20 OR Lcs_crisis_Health = 30 OR Lcs_crisis_OutSchool = 20 OR Lcs_crisis_OutSchool = 30) Crisis_coping_FS = 3. | ||
| EXECUTE. | ||
|
|
||
| * this variable counts the strategies with valid (i.e. non missing) values - normally it should be equal to 10 for all respondents. | ||
| COMPUTE temp_nonmiss_number=NVALID(Lcs_stress_DomAsset, Lcs_stress_Utilities , Lcs_stress_Saving , Lcs_stress_BorrowCash , Lcs_crisis_ProdAssets , Lcs_crisis_Health , Lcs_crisis_OutSchool , Lcs_em_ResAsset , Lcs_em_Begged , Lcs_em_IllegalAct). | ||
| COMPUTE Emergency_coping_FS = 0. | ||
| IF (Lcs_em_ResAsset = 20 OR Lcs_em_ResAsset = 30 OR Lcs_em_Begged = 20 OR Lcs_em_Begged = 30 OR Lcs_em_IllegalAct = 20 OR Lcs_em_IllegalAct = 30) Emergency_coping_FS = 4. | ||
| EXECUTE. | ||
| VARIABLE LABELS temp_nonmiss_number "Number of strategies with non missing values". | ||
|
|
||
|
|
||
| DO IF temp_nonmiss_number>0. | ||
| COMPUTE Max_coping_behaviourFS=1. | ||
| END IF. | ||
| * the Max_coping_behaviourFS variable will be missing for an observation if answers to strategies are all missing. | ||
| ** Add variable labels | ||
|
|
||
| DO IF stress_coping_FS=1. | ||
| COMPUTE Max_coping_behaviourFS=2. | ||
| END IF. | ||
| VARIABLE LABELS Stress_coping_FS "Did the HH engage in stress coping strategies?". | ||
| VALUE LABELS Stress_coping_FS | ||
| 0 'No' | ||
| 2 'Yes'. | ||
|
|
||
| DO IF crisis_coping_FS=1 . | ||
| COMPUTE Max_coping_behaviourFS=3. | ||
| END IF. | ||
| VARIABLE LABELS Crisis_coping_FS "Did the HH engage in crisis coping strategies?". | ||
| VALUE LABELS Crisis_coping_FS | ||
| 0 'No' | ||
| 3 'Yes'. | ||
|
|
||
| DO IF emergency_coping_FS=1. | ||
| COMPUTE Max_coping_behaviourFS=4. | ||
| END IF. | ||
| EXECUTE. | ||
| VARIABLE LABELS Emergency_coping_FS "Did the HH engage in emergency coping strategies". | ||
| VALUE LABELS Emergency_coping_FS | ||
| 0 'No' | ||
| 4 'Yes'. | ||
| EXECUTE. | ||
|
|
||
| VALUE LABELS Max_coping_behaviourFS 1 'HH not adopting coping strategies' 2 'Stress coping strategies ' 3 'Crisis coping strategies ' 4 'Emergencies coping strategies'. | ||
| VARIABLE LABELS Max_coping_behaviourFS "Summary of asset depletion". | ||
| *** For CARI, we use the highest coping strategy applied by the HH. If no coping is used, recode to 1 | ||
|
|
||
| COMPUTE Max_coping_behaviourFS = 0. | ||
| COMPUTE Max_coping_behaviourFS = MAX(Stress_coping_FS, Crisis_coping_FS, Emergency_coping_FS). | ||
| RECODE Max_coping_behaviourFS (0=1). |
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.
I don't find this approach very intuitive, particularly having 0 as no, 4 as yes...
Could lead to some mistake by users.
| *** Optional: Compute the same variable to be used directly for IPC analysis (referring to IPC phases) | ||
|
|
||
| DELETE VARIABLES temp_nonmiss_number. | ||
| COMPUTE Max_coping_behaviourFS_IPC = Max_coping_behaviourFS. | ||
| VARIABLE LABELS Max_coping_behaviourFS_IPC "Official IPC Classification for LCS". | ||
| VALUE LABELS Max_coping_behaviourFS_IPC | ||
| 1 "LCSI [none] - IPC Phase 1" | ||
| 2 "LCSI [stress] - IPC Phase 2" | ||
| 3 "LCSI [crisis] - IPC Phase 3" | ||
| 4 "LCSI [emergency] - IPC Phase 4-5". |
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 dedicated script for IPC analysis.
No description provided.