By Anonymous - October 31, 2014

AHS2
> Baseline
> A5

Baseline Variable: SLEY

Description

Number of years since diagnosed with: Lupus (SLE: Systemic Lupus Erythematosus).

Notes

* Version 1 data for this variable will be recoded from (1 to 6) to (0 to 5) as part of the never_had_updates
.
* Version 1 was coded 1 to 6, while versions 2 and 3 were 1 to 5.
* In version 1, variable is located on A5
. In version 2/3 it is on A4

Data Values

Current

Levels Value
(empty string) Missing
0 Never Had (derived from on A05Q9
/A04Q8
variables)
1 Less than 5 years ago
2 5-9 years ago
3 10-14 years ago
4 15-19 years ago
5 20+ years ago

Original

Levels Value (v1) Value (v2/3)
(empty string) Missing Missing
1 Never Had Less than 5 year ago
2 Less than 5 year ago 5-9 years ago
3 5-9 years ago 10-14 years ago
4 10-14 years ago 15-19 years ago
5 15-19 years ago 20+ years ago
6 20+ years ago N/A

* A05Q9
- version 1 - "never been told that you had any of the conditions listed below"
* A04Q8
- version 2/3 - "never been told that you had any of the conditions listed below"

Location

Questionnaires

Questionnaire Version Labeled Page Physical Page TIFF Image Index Scan Path
1 A5 info
/image
8 05 ''R:\Tiff_Quest_V1''
2 A4 info
/image
7 43 ''R:\Tiff_Quest_V2''
3 A4 info
/image
7 43 ''R:\Tiff_Quest_V3''

Database Tables

Table Name Description
image.dbo.part1 modified version 1 part 1 data
image.dbo.part1_unmodified original/raw version 1 part 1 data

Modifications

"Never Had" Update

For details see: "Never Had" updates
. This is a never_had_updates#Type 6
variable.

SQL Code:

-- Version 1
update image.dbo.part1
set SLEY = '0'
where SLEY = ''
and A05Q9 = '1';

-- Modification already performed
-- update image.dbo.part1
-- set SLEY = SLEY - 1
-- where SLEY > 0;

-- Version 2/3
update image.dbo.v2part1
set SLEY = '0'
where SLEY = ''
and A04Q8 = '1';

update image.dbo.v3part1
set SLEY = '0'
where SLEY = ''
and A04Q8 = '1';

Before / After Counts

Version 1

Note: the "minus one" correction had already been applied to SLEY.

Before After
A05Q9 SLEY Count A05Q9 SLEY Count
1674 1674
0 912 0 912
1 4 1 4
2 6 2 6
3 6 3 6
4 8 4 8
5 6 5 6
0 0 1 0 0 1
1 2337 1 0 2407
1 0 70 1 1 1
1 1 1

Version 2

Before After
A04Q8 SLEY Count A04Q8 SLEY Count
16454 16454
1 40 1 40
2 21 2 21
3 28 3 28
4 19 4 19
5 34 5 34
0 3 0 3
0 1 1 0 1 1
1 12688 1 0 12688
1 5 2 1 5 2

Version 3

Before After
A04Q8 SLEY Count A04Q8 SLEY Count
32708 32708
1 100 1 100
2 70 2 70
3 63 3 63
4 30 4 30
5 95 5 95
0 1 0 1
1 29007 1 0 29007
1 1 1 1 1 1
1 2 3 1 2 3
1 5 4 1 5 4