VARIABLE LABELS MENTR ‘mentally unhealthy days’. (31 THRU HIGHEST=SYSMIS)(ELSE=Copy) INTO MENTR. VARIABLE LABELS PHYSR ‘physically unhealthy days’. (31 THRU HIGHEST=SYSMIS)(ELSE=Copy) INTO PHYSR. **Physically and mentally unhealthy days, and recent activity limitation days** **(recoding to account for zero days (coded as 88 in BRFSS), missing values, data entry errors/outliers)** VARIABLE LABELS FAIRPOOR ‘percent fair poor’. (MISSING=SYSMIS)(1 thru 3=0) (4 thru 5=100) (ELSE=SYSMIS) INTO FAIRPOOR. Use self-rated health variable (GENHLTH) recode into 2 categories: (1) excellent, very good, good (2) fair, poor* **Computed measure: Percent fair to poor health** Label frqmentd=”Percent with frequent mental distress” * Derived measure: Percent with frequent mental distress Label unhealth=”# Unhealthy days in past 30 days” Then unhealth=min(30,sum(physhlth,menthlth)) Īrray qoldays physhlth menthlth poorhlth * then change (impute) the number of recent activity limitation days to zero days. * if the number of recent activity limitation days is missing (skip pattern), * if the number of mental health days not good equals zero, and * If the number of physical health days not good equals zero, and * Convert values of 88 to zero and out-of-range values to missing. Physically and mentally unhealthy days and recent activity limitation days
![possible spss code error possible spss code error](https://i.ytimg.com/vi/ww97Jkpo4E0/maxresdefault.jpg)
Label fairpoor=”Percent fair->poor self-rated health” (including the derived measure of percent fair->poor self-rated health)