Status for Inclusion in Analysis Sample Code
Note: This page is from an older version of the Data Dictionary and may therefore contain information that is now out of date. It is included here for reference only.
1 The following pseudo code and SPSS code is provided to illustrate the Status for Inclusion in Analysis data definition.
2 The following table shows the steps required to derive A_LIVE_B
Step | Condition | Action if true | Action if false |
1 | Is the collection ACL | Go To 3 | Go To 2 |
2 | Does A17 = 6 | Set A_LIVE_B to 0 | Go To 3 |
3 | Does PRD_ACT=0 AND PRD_EXP >= 1 | Set A_LIVE_B to 1 | Go To 4 |
4 | Does PRD_ACT >= 1 AND PRD_EXP=0 | Set A_LIVE_B to 2 | Go To 5 |
5 | Does PRD_ACT >= 1 AND PRD_EXP >= 1 | Set A_LIVE_B to 3 | Go To 6 |
6 | Does (PRD_ACT=0 AND PRD_EXP=0) A_LIVE_B | Set A_LIVE_B to 0 | |
3 The following SPSS code illustrates how to derive A_LIVE_B.
A_LIVE_B
L_LIVE_B
4 The following table shows the steps required to derive L_LIVE_B
Step | Condition | Action if true | Action if false |
1 | Does any A_LIVE_B=0 | Set L_LIVE_B to 0, Go To 2 | Go To 2 |
2 | Does any A_LIVE_B=1 | Set L_LIVE_B to 1, Go To 3 | Go To 3 |
3 | Does any A_LIVE_B=2 | Set L_LIVE_B to 2, Go To 4 | Go To 4 |
4 | Does any A_LIVE_B=3 | Set L_LIVE_B to 3, Go To 4 | Go To 5 |
5 The following SPSS code illustrates how to derive L_LIVE_B.
Last Modified: 27 Jan 06