columns

svenskpotatis·2023년 11월 14일
    1. 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
    1. CHECKUP1, length of time since last routine checkup
    • 1: 작년, 2: 2년이내, 3: 5년이내, 4: 5년이상 전, 5: dont know/not sure, 8: never, 9: refused
    1. EXERANY2, exercise in past 30 days
      1. yes, 2: no, 7: dont know, 9: refused
    1. BPHIGH6, ever told blood pressure high
      1. yes, 2: yes 임신기간, 3: no, 4: borderline high, 7: dont know, 8: refused
    1. TOLDHI3, ever told cholesterol is high
    • 1: yes, 2: no, 7: dont know/not sure, 9: refused
    1. CVDSTRK3, ever diagnosed with a stroke
    • 1: yes, 2: no, 7: dont know, 9: refused
    1. CHCSCNCR, skin cancer
    • 1: yes, 2: no, 7: dont know, 9: refused
    1. CHCOCNCR, other cancer
    • 1: yes, 2: no, 7: dont know, 9: refused
    1. ADDEPEV3, depression
    • 1: yes, 2: no, 7: dont know, 9: refused
    1. DIABETE4, diabetes
      1. yes, 2: yes 임신기간, 3: no, 4: borderline diabetes, 7: dont know, 8: refused
    1. DIFFWALK, difficulty walking or climbing stairs
    • 1: yes, 2: no, 7: dont know, 9: refused
    1. USENOW3, tobacco use
      1. 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
      1. white, 2. black, 3. asian, 4. american indian/alaskan native, non-hispanic, 5. hispanic, 6. other
    1. _PHYS14D, computed physical health status
      1. 0 days not good, 2: 1-13 days, 3: 14+ days, 9: dont know/refused/missing
    1. _MENT14D, computed mental health status
      1. 0 days not good, 2: 1-13 days, 3: 14+ days, 9: dont know/refused/missing
    1. _TOTINDA, physical activity or excercise
      1. 함, 2: 안함, 3: dont know
    1. _RFHYPE6, high blood pressure (114. BPHIGH6)
      1. no, 2. yes, 3. dont know
    1. _RFCHOL3, high cholesterol (x. CHOLCHK3)
      1. no, 2. yes, 3. dont know
  • 1908. _MICHD, ever had CHD or MI (119. CVDIFNR4)
      1. yes, 2. no
    1. _DRDXAR3, arthritis (132. HAVARTH5)
      1. yes, 2. no
    1. _SEX, sex
      1. male, 2. female
  • 1983-1984. _AGEG5YR, age categories
  • 1992-1994. HTM4, height in meters
  • 1995-1999. WTKG3, weight in kiligrams
  • 2000-2003. _BMI5, bmi
    1. _BMI5CAT, bmi categories
    1. _RFBMI5, obese
      1. no, 2. yes
    1. _SMOKER3, smoking status
      1. 매일, 2. 가끔, 3. 금연, 4. never, 9. dont know
    1. _RFSMOK3, current smokers
      1. no, 2. yes
    1. _DRNKWK1, alcohol per week
      1. x, 1-98999: drinks per week (AVEDRNK3DROCDY3_7), 99900: dont know
    1. _RFDRHV7, heavy drinkers
      1. no, 2. yes, 9. dont know
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
}

1개의 댓글

comment-user-thumbnail
2023년 11월 14일

좋은 글이네요. 공유해주셔서 감사합니다.

답글 달기