Active on Census Date 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 Active on Census Date data definition
A_OCT
2 The following table shows the steps required to derive A_OCT
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
A27=1 October current academic year |
set A_OCT to 1 |
Go To 2 |
|
2 |
A27 < 1 October relevant academic year and A31>1 October relevant academic year |
set A_OCT to 1 |
Go To 3 |
|
3 |
A27< 1 October relevant academic year and A28 >= 1 October current academic year and no date in A31 |
set A_OCT to 1 |
Go To 4 |
|
4 |
A27< 1 October relevant academic year and A28 < 1 August current academic year and no date in A31 |
set A_OCT to 1 |
Go To 5 |
|
5 |
A27< 1 October relevant academic year, no date in A28, no date in A31 and A34 is either missing or = 1 |
set A_OCT to 1 |
|
3 The following SPSS code illustrates how to derive A_OCT
L_OCT
4 The following table shows the steps required to derive L_OCT
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
Is Collection=WBL or ESF SR |
Go to 3 |
Go to 2 |
|
2 |
Is A_LIVE_B>1 |
Go to 3 |
Stop |
|
3 |
Is any A_OCT=1 |
Set L_OCT to 1 |
Set L_OCT to 0 |
5 The following SPSS code illustrates how to derive L_OCT
A_NOV
6 The following table shows the steps required to derive A_NOV
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
A27=1 November relevant academic year |
set A_NOV to 1 |
Go To 2 |
|
2 |
A27 < 1 November relevant academic year and A31>1 November relevant academic year |
set A_NOV to 1 |
Go To 3 |
|
3 |
A27< 1 November relevant academic year and A28 >= 1 November relevant academic year and no date in A31 |
set A_NOV to 1 |
Go To 4 |
|
4 |
A27< 1 November relevant academic year and A28 < 1 August relevant academic year and no date in A31 |
set A_NOV to 1 |
Go To 5 |
|
5 |
A27< 1 November relevant academic year, no date in A28, no date in A31 and A34 is either missing or = 1 |
set A_NOV to 1 |
|
7 The following SPSS code illustrates how to derive A_NOV
L_NOV
8 The following table shows the steps required to derive L_NOV
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
Is Collection=WBL or ESF SR |
Go to 3 |
Go to 2 |
|
2 |
Is A_LIVE_B>1 |
Go to 3 |
Stop |
|
3 |
Is any A_NOV=1 |
Set L_NOV to 1 |
Set L_NOV to 0 |
9 The following SPSS code illustrates how to derive L_NOV
A_JAN
10 The following table shows the steps required to derive A_JAN
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
A27=1 January relevant academic year + 1 |
set A_JAN to 1 |
Go To 2 |
|
2 |
A27 < 1 January relevant academic year + 1 and A31>1 January relevant academic year + 1 |
set A_JAN to 1 |
Go To 3 |
|
3 |
A27< 1 January relevant academic year + 1 and A28 >= 1 January relevant academic year + 1 and no date in A31 |
set A_JAN to 1 |
Go To 4 |
|
4 |
A27< 1 January relevant academic year + 1 and A28 < 1 August relevant academic year + 1and no date in A31 |
set A_JAN to 1 |
Go To 5 |
|
5 |
A27< 1 January relevant academic year, no date in A28, no date in A31 and A34 is either missing or = 1 |
set A_JAN to 1 |
|
11 The following SPSS code illustrates how to derive A_JAN
|
COMPUTE A_JAN=0.
/* If course starts on 1/1, then A_JAN=1. IF A27 = DATE.DMY(1,1,relevant academic year + 1) A_JAN =1.
/* If course starts before 1/1 and finishes after 1/1, then A_JAN=1. IF A27 < DATE.DMY(1,1,relevant academic year + 1) AND a31 >= DATE.DMY(1,1,relevant academic year + 1) A_JAN =1.
/* If course starts before 1/1 and is expected to finish after 1/1 OR /* If the course has an expected date of before 1/8 but the actual /* enddate is blank, then A_JAN=1. IF A27 < DATE.DMY(1,1,relevant academic year + 1) AND (A28 >= DATE.DMY(1,1,relevant academic year) OR A28 < DATE.DMY(1,8,relevant academic year) ) AND MISSING(A31) A_JAN =1.
/* If course starts before 1/1, there is no expected or actual enddate /* and a34=1 or missing, then A_JAN=1. IF ( A27 < DATE.DMY(1,1,relevant academic year + 1) AND MISSING(A31) AND MISSING(A28) AND (A34=1 OR MISSING(A34))) A_JAN =1.
VARIABLE LABELS A_JAN 'DV - Qualification active on 1 January in this year'.
VALUE LABELS A_JAN 0 'Not active on 1 January' 1 'Active on 1 January'. |
L_JAN
12 The following table shows the steps required to derive L_JAN
|
Step |
Condition |
Action if true |
Action if false |
|
1 |
Is Collection=WBL or ESF SR |
Go to 3 |
Go to 2 |
|
2 |
Is A_LIVE_B>1 |
Go to 3 |
Stop |
|
3 |
Is any A_JAN=1 |
Set L_JAN to 1 |
Set L_JAN to 0 |
13 The following SPSS code illustrates how to derive L_JAN
Last Modified: 27 Jan 06