- GENHLTH, general health
- 1 ~ 5: excellent ~ poor(excellent가 1)
- 7: dont know / not sure
- 9: refused
- 102-103. PHYSHLTH, number of days physical health not good
- 1 ~ 30: number of days
- 88: none
- 77: not sure
- 99: refused
- 104-105. MENTHLTH, number of days mental health not good
- 1 ~ 30: number of days
- 88: none
- 77: not sure
- 99: refused
- CHECKUP1, length of time since last routine checkup
- 1: 작년, 2: 2년이내, 3: 5년이내, 4: 5년이상 전, 5: dont know/not sure, 8: never, 9: refused
- EXERANY2, exercise in past 30 days
- yes, 2: no, 7: dont know, 9: refused
- BPHIGH6, ever told blood pressure high
- yes, 2: yes 임신기간, 3: no, 4: borderline high, 7: dont know, 8: refused
- TOLDHI3, ever told cholesterol is high
- 1: yes, 2: no, 7: dont know/not sure, 9: refused
- CVDSTRK3, ever diagnosed with a stroke
- 1: yes, 2: no, 7: dont know, 9: refused
- CHCSCNCR, skin cancer
- 1: yes, 2: no, 7: dont know, 9: refused
- CHCOCNCR, other cancer
- 1: yes, 2: no, 7: dont know, 9: refused
- ADDEPEV3, depression
- 1: yes, 2: no, 7: dont know, 9: refused
- DIABETE4, diabetes
- yes, 2: yes 임신기간, 3: no, 4: borderline diabetes, 7: dont know, 8: refused
- DIFFWALK, difficulty walking or climbing stairs
- 1: yes, 2: no, 7: dont know, 9: refused
- USENOW3, tobacco use
- everyday, 2. some days, 3. not at all, 7. dont know, 9. refused
- 214-216. ALCDAY5, alcohol consumption
- 101 - 107. days per week(1), 201-230: 지난달(2), 777. dont know, 888. 안마심, 999. refused
- 240-242. FRUIT2, how many times did you eat fruit?
- 101-199. days, 201-299. weeks, 300: 한 달에 한 번 이하, 301-399: month/year, 555: never, 777: dont know, 999: refused
- 246-248. FVGREEN1, how many times did you eat dark green vegetables?
- 101-199. days, 201-299. weeks, 300: 한 달에 한 번 이하, 301-399: month/year, 555: never, 777: dont know, 999: refused
- 249-251. FRENCHF1, how often do you eat french fries or fried potatoes?
- 101-199. days, 201-299. weeks, 300: 한 달에 한 번 이하, 301-399: month/year, 555: never, 777: dont know, 999: refused
- 255-257. VEGETAB2, how many times did you eat other vegetables? lettuce, potato 제외
- 101-199. days, 201-299. weeks, 300: 한 달에 한 번 이하, 301-399: month/year, 555: never, 777: dont know, 999: refused
- 1471-1472. _IMPRACE, imputed race/ethnicity value
- white, 2. black, 3. asian, 4. american indian/alaskan native, non-hispanic, 5. hispanic, 6. other
- _PHYS14D, computed physical health status
- 0 days not good, 2: 1-13 days, 3: 14+ days, 9: dont know/refused/missing
- _MENT14D, computed mental health status
- 0 days not good, 2: 1-13 days, 3: 14+ days, 9: dont know/refused/missing
- _TOTINDA, physical activity or excercise
- _RFHYPE6, high blood pressure (114. BPHIGH6)
- _RFCHOL3, high cholesterol (x. CHOLCHK3)
- 1908. _MICHD, ever had CHD or MI (119. CVDIFNR4)
- _DRDXAR3, arthritis (132. HAVARTH5)
- _SEX, sex
- 1983-1984. _AGEG5YR, age categories
- 1992-1994. HTM4, height in meters
- 1995-1999. WTKG3, weight in kiligrams
- 2000-2003. _BMI5, bmi
- _BMI5CAT, bmi categories
- _RFBMI5, obese
- _SMOKER3, smoking status
- 매일, 2. 가끔, 3. 금연, 4. never, 9. dont know
- _RFSMOK3, current smokers
- _DRNKWK1, alcohol per week
- x, 1-98999: drinks per week (AVEDRNK3DROCDY3_7), 99900: dont know
- _RFDRHV7, heavy drinkers
genhlthM = {
1: 5,
2: 3,
3: 2,
4: 1,
5: 0,
7: None,
9: None
}
#physhlthM;
#menhtlhM;
checkupM = {
1:4, 2: 3, 3:2, 4:1, 5:None, 8:0, 9:None
}
tobanowM = {
1:5, 2:3, 3:0, 7:None, 9:None
}
# lcday5, fruit2, fvgreen1, frenchf1, vegetab2, _drnkwk1: 값 변경 후 mapping
# _IMPRACE: categorical
# EXERANY2, TOLDHI3, CVDSTRK3, CHCSCNCR, CHCOCNCR, ADDEPEV3, DIFFWALK
map1 = {
1:1, 2:0, 7:None, 9:None
}
# BPHIGH6, DIABETE4
map2 = {
1:1, 2:1, 3:0, 4:0, 7:None, 9:None
}
# _PHYS14D, _MENT14D
map3 = {
1:5, 2:3, 3:0, 9:None
}
# _TOTINDA
map4 = {
1:1, 2:0, 3:None
}
# _RFHYPE6, _RFCHOL3
map4 = {
1:0, 2:1, 3:None
}
# _MICHD, _DRDXAR3, _SEX
map5 = {
1:1, 2:0
}
# _RFBMI5, _RFSMOK3
map5 = {
1:0, 2:1
}
# _SMOKER3
map6 = {
1:5, 2:5, 3:1, 4:0, 9:None
}
# _RFDRHV7
map7 = {
1:0, 2:1, 9:None
}
좋은 글이네요. 공유해주셔서 감사합니다.