By Anonymous - November 3, 2014

AHS2
> Baseline
> A3

Baseline Variable: EMPHYSY

Description

Number of years since diagnosed with: Emphysema

Notes

* "Never Had" value, coded as 0, added as appropriate as part of the never_had_updates
.

Data Values

Current

Levels Value
(empty string) Missing
0 Never Had (derived from on A03Q7
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
(empty string) Missing
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

* A03Q7
- "never been told that you had any of the conditions listed below"
* EMPHYS
- Treated for this in the last 12 months: Emphysema

Location

Questionnaires

Questionnaire Version Labeled Page Physical Page TIFF Image Index Scan Path
1 A3 info
/image
6 03 ''R:\Tiff_Quest_V1''
2 A3 info
/image
6 44 ''R:\Tiff_Quest_V2''
3 A3 info
/image
6 44 ''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 5
variable.

SQL Code:

-- Version 1
update image.dbo.part1
set EMPHYSY = '0'
where EMPHYSY = ''
and A03Q7 = '1';

-- Version 2
update image.dbo.v2part1
set EMPHYSY = '0'
where EMPHYSY = ''
and A03Q7 = '1';

-- Version 3
update image.dbo.v3part1
set EMPHYSY = '0'
where EMPHYSY = ''
and A03Q7 = '1';

Before / After Counts

Version 1

Before After
A03Q7 EMPHYSY COUNT A03Q7 EMPHYSY COUNT
2734 2734
1 27 1 27
2 6 2 6
3 5 3 5
4 2 4 2
5 13 5 13
1 2233 1 0 2233
1 1 4 1 1 4
1 4 1 1 4 1

Version 2

Before After
A03Q7 EMPHYSY COUNT A03Q7 EMPHYSY COUNT
17610 17610
1 83 1 83
2 49 2 49
3 33 3 33
4 18 4 18
5 47 5 47
0 4 0 4
1 11441 1 0 11441
1 1 1 1 1 1
1 4 2 1 4 2
1 5 2 1 5 2

Version 3

Before After
A03Q7 EMPHYSY COUNT A03Q7 EMPHYSY COUNT
35829 35829
* 1 * 1
1 209 1 209
2 93 2 93
3 61 3 61
4 50 4 50
5 97 5 97
1 25727 1 0 25727
1 1 8 1 1 8
1 2 2 1 2 2
1 4 1 1 4 1
1 5 4 1 5 4