/********************************************************************************
SAS User File for PUF2015 Data                                                                   
                                                                                                    
This file contains information and sample SAS programs to create a permanent                        
SAS dataset for users who want to use SAS in processing the PUF2015 transport data file                              
provided in this PUF release.                                                                       
                                                                                                    
Section A provides a sample SAS program to convert the SAS transport data file to a                             
regular SAS dataset using the SAS procedure: CIMPORT.  

Section B creates a format library (section B1) and applies the formats (section B2) to a temprory, intermediate PUF2015 dataset

Section C creates and applies labels to the dataset, which it saves as a permanent dataset (PUF2015) in the specified location (library PUFLIB)                       
                                                                                                    
******************************************************************************/                      

/*******************************************************************************                                                                                                                                                                                                                                  
A. Covert the XPT file into a temporary SAS dataset in library location given by LIBNAME                                                                             
*******************************************************************************/
            


LIBNAME PUFLIB 'C:\MCBS\SASDATA';                                                               
FILENAME F "C:\MCBS\DOWNLOAD\SFPUF2015.XPT";                                              


PROC CIMPORT LIBRARY=WORK INFILE=F;
RUN;                                                                                                                                                                                                                                                                                                                                                                                        
   
/*******************************************************************************                                                                                                 
The LIBNAME PUFLIB statement tells SAS the location (directory name) to store the                          
permanent SAS dataset which is output by PROC CIMPORT.  The FILENAME F statement                        
tells SAS the location (complete directory and file name) of the input SAS                          
transport data file.                                                                                
*******************************************************************************/
                                                                                                                                                                                             
/*********************************************************************************                                                                                              
B1. Creates format library                           
*******************************************************************************/                                                                                                                                                      
 


proc format library=PUFLIB;

VALUE PUFFMT
LOW-HIGH = "PUF_ID Count" ;

value SVYRFMT
2015="2015";

value age2grp
1='1:Age Group <65'
2='2:Age Group [65,75)'
3='3:Age Group >=75'
.='Inapplicable/Missing'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value sex
.='Inapplicable/Missing'
1='1:Male'
2='2:Female'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value race
.='Inapplicable/Missing'
1='1:Non-Hispanic white'
2='2:Non-Hispanic black'
3='3:Hispanic'
4='4:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value ivcore
.='Inapplicable/Missing'
1='1:Non-Hispanic white, < 65 years' 
2='2:Non-Hispanic white, 65-74 years' 
3='3:Non-Hispanic white, 75-84 years' 
4='4:Non-Hispanic white, 85+ years' 
5='5:Non-Hispanic black, <65 years' 
6='6:Non-Hispanic black, 65-74 years' 
7='7:Non-Hispanic black, 75-84 years' 
8='8:Non-Hispanic black, 85+ years' 
9='9:Hispanic, <65 years' 
10='10:Hispanic, 65-74 years' 
11='11:Hispanic, 75+ years' 
12='12:Other, <65 years' 
13='13:Other, 65-74 years' 
14='14:Other, 75+ years'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value yesfmt
1='1:Yes'
2='2:No'
.='Inapplicable/Missing'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value edu
.='Inapplicable/Missing'
1='1:Less than high school'
2='2:High school or vocational, technical, business, etc' /*LM edit 12/30 and 4/8*/
3='3:More than high school'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value marsta
.='Inapplicable/Missing'
1='1:Married'
2='2:Widowed'
3='3:Divorced/separated'
4='4:Never Married'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value genhfmt
.='Inapplicable/Missing'
1='1:Excellent'
2='2:Very good'
3='3:Good'
4='4:Fair'
5='5:Poor'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value compfmt 
.='Inapplicable/Missing'
1='1:Much Better'
2='2:Somewhat better'
3='3:About the same'
4='4:Somewhat worse'
5='5:Much Worse'
.N='.N: Not ascertained'
.D=".D: Don't know"
.R='.R: Refused';

value timefmt
.='Inapplicable/Missing'
1='1:None of the time'
2='2:Some of the time'
3='3:Most of the time'
4='4:All of the time'
.R='.R:Refused' 
.D=".D:Don't know"
.N='.N:Not ascertained';

value lookfmt
.='Inapplicable/Missing'
1='1:No trouble seeing'
2='2:A little trouble seeing'
3='3:A lot of trouble seeing'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value lastfmt

1='1:Never had an eye exam'
2='2:1 year to less than 2 years'
3='3:2 years to less than 5 years'
4='4:5 years or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'
.='Inapplicable/Missing';

value edofmt
.='Inapplicable/Missing'
1='1:Optometrist'
2='2:Ophthalmologist'
91='91:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hcfmt
.='Inapplicable/Missing'
1='1:No trouble' 
2='2:A little trouble'
3='3:A lot of trouble'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value bmifmt
.='Inapplicable/Missing'
1='1:Underweight, <18.5'
2='2:Healthy, 18.5-<25'
3='3:Overweight, 25-<30'
4='4:Obese, 30-<40'
5='5:Extreme or high risk obesity, >=40';

value time2fmt
.='Inapplicable/Missing'
1='1:Less than 6 months ago'
2='2:6 months to less than 1 year'
3='3:1 year to less than 2 years'
4='4: 2 years or more'
5='5:Never taken' 
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value sitefmt
.='Inapplicable/Missing'
1="1:Doctor's office/clinic or managed care center"
2='2:Health center/clinic'
3='3:Urgent care/Hospital related facility'
4='4:V.A. facility'
5='5:Shopping mall/other store'
6='6:Other'
7='7:No Flu Shot'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value difffmt
.='Inapplicable/Missing'
1='1:No Difficulty'
2='2:Little Difficulty'
3='3:Some Difficulty'
4='4:A lot of Difficulty'
5='5:Unable to do it'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'; 
                                       
value diafmt
.='Inapplicable/Missing'
1='1:Type 1: insulin dependent, juv-onset'
2='2:Type 2: non-insulin depend, adult-onset'
3='3:Borderline'
4='4:Pre-diabetes'
5='5:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value funlmtfmt
.='Inapplicable/Missing'
0='0:No Functional Limitations'
1='1:IADLs Only'
2='2:1 to 2 ADLs'
3='3:3 to 4 ADLs'
4='4:5 to 6 ADLs';

value adlhnm
.='Inapplicable/Missing'
0='0:No helpers'
1='1:1 helper'
2='2:2 helpers'
3='3:3 helpers'
4='4:4 or more helpers';

value time3fmt
.='Inapplicable/Missing'
1='1:All of the time'
2='2:Most of the time'
3='3:Some of the time'
4='4:A little of the time'
5='5:None of the time'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value felltimefmt
.='Inapplicable/Missing'
1='1:Fell 1 time' 
2='2:Fell 2 times' 
3='3:Fell 3 times'
4='4:Fell 4 times' 
5='5:Fell 5 or more times'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'; 

value time4fmt
.='Inapplicable/Missing'
0='0:Never had blood cholesterol taken'
1='1:Less than 6 months ago'
2='2:6 months to 1 year ago'
3='3:1 year to less than 2 years ago'
4='4:2 years to less than 5 years ago'
5='5:5 or more years ago'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hypetf 
.='Inapplicable/Missing'
1="1:Yes"
2="2:No"
3="3:Never told. Prior entry in error"
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value smktime
.='Inapplicable/Missing'
1='1:Less than 1 year'
2='2:1 to 9 years'
3='3:10 or more years'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value smktime2f
.='Inapplicable/Missing'
1='1:Less than 1 year'
2='2:1 to 4 years'
3='3:5 to 9 years'
4='4:10 or more years'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value smkquit  
.='Inapplicable/Missing'
1='1:Yes' 
2='2:No' 
3='3:Never Smoke'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value drinkday
.='Inapplicable/Missing'
0='0:None'
1='1:One day a month'
2='2:Two days a month'
3='3:Three days a month'
4='4:Four days a month'
5='5:Five days a month'
6='6:Six to ten days a month'
7='7:Eleven to fifteen days a month'
8='8:Sixteen to twenty days a month'
9='9:Twenty-one to twenty-five days a month'
10='10:Twenty-six days to every day'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value drinkspd 
.='Inapplicable/Missing'
1='1:One drink per day'
2='2:Two drinks per day'
3='3:Three to five drinks per day'
4='4:Six or more drinks per day'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value drink2day  
.='Inapplicable/Missing'
0='0:None'
1='1:One day a month'
2='2:Two to five days a month'
3='3:Six days a month to every day'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';
                    
value hracta
.='Inapplicable/Missing'
0='0:None'
1='1:One hour per week'
2='2:Two hours per week'
3='3:Three hours per week'
4='4:Four hours per week'
5='5:Five hours per week'
6='6:Six hours per week'
7='7:Seven hours per week' 
8='8:Eight to thirteen hours per week'
9='9:Fourteen hours per week'
10='10:Fifteen to twenty five hours per week'
11='11:Twenty six or more hours per week'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hractb
.='Inapplicable/Missing'
0='0:None'
1='1:One hour per week'
2='2:Two hours per week'
3='3:Three hours per week'
4='4:Four hours per week'
5='5:Five hours per week'
6='6:Six hours per week'
7='7:Seven hours per week'
8='8:Eight to nine hours per week'
9='9:Ten hours per week'
10='10:Eleven to thirteen' 
11='11:Fourteen hours per week'
12='12:Fifteen hours per week'
13='13:Sixteen to twenty hours per week' 
14='14:Twenty one to twenty five hours per week'
15='15:Twenty five to thirty hours per week'
16='16:Thirty one or more hours per week'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hractc
.='Inapplicable/Missing'
0='0:None'
1='1:One hour per week'
2='2:Two hours per week'
3='3:Three hours per week'
4='4:Four hours per week'
5='5:Five hours per week'
6='6:Six hours per week'
7='7:Seven hours per week' 
8='8:Eight or more hours per week'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value time5fmt
.='Inapplicable/Missing'
1='1:Less than 5 years ago'
2='2:5 to 9 years ago'
3='3:10 or more years ago';

value time6fmt
.='Inapplicable/Missing'
1='1:Less than 1 year'
2='2:1 to 4 years'
3='3:5 to 9 years'
4='4:10 to 14 years'
5='5:15 to 19 years'
6='6:20 to 29 years'
7='7:30 or more years'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value ctrlfmt
.='Inapplicable/Missing'
1='1:Very confident'
2='2:Confident'
3='3:Somewhat confident'
4='4:Not confident'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';
                 
value time7fmt
.='Inapplicable/Missing'
1='1:Less than 1 week'
2='2:More than 1 week'
3='3:Never resumed regular activities'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';
         
value apptfmt
.='Inapplicable/Missing'
1='1:Appointment' 
2='2:Walked in'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value opdtelfmt
.='Inapplicable/Missing'
1='1:Told to come back during a prior visit' 
2='2:Called for an appointment'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value appttime
.='Inapplicable/Missing'
0="0:Didn't have wait"
1='1:1 to 3 days'
2='2:4 to 9 days'
3='3:10 or more days'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value opttime
.='Inapplicable/Missing'
1='1: Up to one hour' 
2='2: More than one hour'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value mdfmt
.='Inapplicable/Missing'
1='1:Primary Care'
2='2:Obstetrics/Gynecology'
3='3:Ophthalmology'
4='4:Orthopedics'
5='5:Psychiatry'
6='6:Cardiology'
7='7:Dermatology'
8='8:Urology'
9='9:Surgery'
10='10:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value appt2time
.='Inapplicable/Missing'
0="0:Didn't have wait"
1='1:1 to 3 days'
2='2:4 to 6 days'
3='3:7 to 9 days'
4='4:10 to 20 days'
5='5:21 days or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value mdtime
.='Inapplicable/Missing'
1='1:0 - 60 mins'
2='2:61 - 120 mins'
3='3:121 mins or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value satffmt
.='Inapplicable/Missing'
1='1:Very Satisfied'
2='2:Satisfied'
3='3:Dissatisfied'
4='4:Very Dissatisfied'
5='5:No experience'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value yes2fmt
.='Inapplicable/Missing'
1='1:Yes' 
2='2:No'
3='3:No experience'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value dhstfmt
.='Inapplicable/Missing'
1='1:Kept track of total medicine spending'
2='2:Info provided by the pharmacy'
3='3:Info provided by the part D plan'
91='91:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';
 
value worry
.='Inapplicable/Missing'
1='1:Very worried'
2='2:Somewhat worried'
3='3:Not at all worried'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value truefmt
.='Inapplicable/Missing'
1='1:True' 
2='2:False'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value reason1fmt
.='Inapplicable/Missing'
1='1:Not serious'
2='2:Cost too much'
3='3:Trouble finding doc'
4='4:Schedule conflict'
5='5:Doctor could not do much'
6='6:Afraid of finding out'
7='7:Insurance not accepted'
91='91:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value freqfmt
.='Inapplicable/Missing'
1='1:Often'
2='2:Sometimes'
3='3:Never'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value site2fmt
.='Inapplicable/Missing'
1="1:Doctor’s office group or Doctor’s clinic"
2='2:Managed care plan center/ HMO'
3='3:Other clinic (incl neighborhood family health center, rural health center, company clinic, other clinic)'
4='4:Hospital (incl. walk in urgent care, hospital ER, hospital outpatient, hospital inpatient)'
5='5:VA facility'
6='6:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value md2fmt
.='Inapplicable/Missing'
1='1:Primary Care'
2='2:Osteopathy' 
3='3:Cardiology'
4='4:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value showfmt
.='Inapplicable/Missing'
1='1:Walking'
2='2:Driving'
3='3:Being driven'
4='4:Ambulance or other special vehicle'
5='5:Taxi'
6='6:Other public transportation'
7='7:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value minsfmt
.='Inapplicable/Missing'
1='1:0 to 15 mins'
2='2:16 to 30 mins'
3='3:31 to 59 mins'
4='4:60 to 119 mins'
5='5:2 hours or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value time8fmt
.='Inapplicable/Missing'
1='1:Less than 1 year'
2='2:1 year to < 3 years'
3='3:3 years to < 5 years'
4='4:5 years to < 10 years'
5='5:10 years or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value agree
.='Inapplicable/Missing'
1='1:Strongly Agree'
2='2:Agree'
3='3:Disagree'
4='4:Strongly Disagree'
5='5:No experience'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value mcare
.='Inapplicable/Missing'
1='1:Part A or Part B only'
2='2:Part A and Part B'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';



value privnum
.='Inapplicable/Missing'
0='0:No private plan'
1='1:One private plan'
2='2:Two private plans'
3='3:Three or more private plans'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hhtot
.='Inapplicable/Missing'
1='1:One'
2='2:Two'
3='3:Three'
4='4:Four'
5='5:Five'
6='6:Six or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hh2tot
.='Inapplicable/Missing'
0='0:No one'
1='1:One'
2='2:Two'
3='3:Three or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hhcomp
.='Inapplicable/Missing'
1='1:No one'
2='2:Spouse only'
3='3:Spouse & others'
4='4:Children only'
5='5:Children & others'
6='6:Others only'
7='7:Non relative'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value hhlt
.='Inapplicable/Missing'
0='0:No one'
1='1:One'
2='2:Two'
3='3:Three'
4='4:Four or more'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value dwelfmt
.='Inapplicable/Missing'
1='1:Single family home (one-family detached)'
2='2:Multi family dwelling (two-family or duplex, mother in law apartment)'
3='3:Apartment or condominium building/ row house or town house'
4='4:Mobile home or trailer'
5='5:Other'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value levelfmt
.='Inapplicable/Missing'
1='1:One level'
2='2:Two levels'
3='3:Three or more levels'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'
-1="-1: Inapplicable" ;

value servfmt
.='Inapplicable/Missing'
1='1:All included'
2='2:Some included/some separate'
3='3:All separate'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value lang
.='Inapplicable/Missing'
1='1:English'
2='2:Spanish';

value proxy 
.='Inapplicable/Missing'
1='1:Self'
2='2:Proxy'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value medstafmt
.='Inapplicable/Missing'
1='1:Aged'
2='2:Disabled'
3='3:Unknown'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value metro 
.='Inapplicable/Missing'
1='1:Metro area'
2='2:Non-metro area';

value pdrsfmt
.='Inapplicable/Missing'
1='1:Not subsidized'
2='2:Subsidized part year'
3='3:Subsidized full year'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'; 

value ipstyfmt 
.='Inapplicable/Missing'
0='0:No stay' 
1='1:One stay' 
2='2:Two stays'
3='3:Three stays'
4='4:Four or more stays'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value ipsty2fmt 
.='Inapplicable/Missing'
0='0:No visit' 
1='1:One or more visit'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value snfdayfmt
.='Inapplicable/Missing'
0='0:0 day covered'
1='1:1 day or more covered'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value ipdayfmt
.='Inapplicable/Missing'
0='0:0 day'
1='1:1 day'
2='2:2 days'
3='3:3 days' 
4='4:4 days'
5='5: 5 or more days'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';
                              

value phyvist     
.='Inapplicable/Missing' 
0='0:No office visit'
1='1:1 to 5 office visits'
2='2:6 to 10 office visits'
3='3:11 to 15 office visits'
4='4:16 to 20 office visits'
5='5:21 or more office visits'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value opmdcd
.='Inapplicable/Missing'
1='1:Nondual'
2='2:Full dual'
3='3:Partial dual'
4='4:QMB dual';

value dualfmt
.='Inapplicable/Missing'
1='1:Non dual'
2='2:Part year dual'
3='3:Full year dual'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value ffsfmt
.='Inapplicable/Missing'
1='1:No FFS'
2='2:Part year FFS'
3='3:Full year FFS'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value mafmt
.='Inapplicable/Missing'
1='1:No MA'
2='2:Part year MA'
3='3:Full year MA'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value acofmt
.='Inapplicable/Missing'
1='1:Shared Savings Program ACO'
2='2:Not assigned to an ACO'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value premfmt
.='Inapplicable/Missing'
1='1:No premium subsidy'
2='2:Part year premium subsidy'
3='3:Full year premium subsidy'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value prem2fmt
.='Inapplicable/Missing'
1='1:No premium subsidy'
2='2:Not full year 100% premium subsidy'
3='3:Full year 100% premium subsidy'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value refdif
.='Inapplicable/Missing'
1='1:Yes'
2='2:No'
3="3:N/A - haven't tried to obtain referral"
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';


value mdf
1="1:MD visit"
2="2:No MD visit";


value d_incsrcef
.='Inapplicable/Missing'
1="1:Not imputed"
2="2:Imputed by carry forward"
3="3:Imputed by hotdeck";

value SPCLKNOWf
.='Inapplicable/Missing'
1="1:Yes, definitely"
2="2:Yes, somewhat"
3="3:No"
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value d_madv
.='Inapplicable/Missing'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'
1="1.Enrolled in MA during year"
2="2.Never enrolled in MA during year";

value insdrds
.='Inapplicable/Missing'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained'
1="1.Had RDS during year"
2="2.Never had RDS during year";

value roomnum
.='Inapplicable/Missing'
1='1:One room' 
2='2:Two rooms'
3='3:Three rooms'
4='4:Four rooms'
5='5:Five rooms'
6='6:Six rooms'
7='7:Seven rooms'
8='8:Eight rooms'
9='9:Nine or more rooms'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value madvyrs
.='Inapplicable/Missing'
1='1:1-2 years'
2='2:3 to 5 years'
3='3:6 to 10 years'
4='4:11 or more years'
.R='.R:Refused'
.D=".D:Don't know"
.N='.N:Not ascertained';

value madvnoem
.="Inapplicable/Missing"
1="1:1:Yes"
2="2:2:No"
3="3:N/A, haven't needed emergency treatment"
.R=".R:Refused"
.D=".D:Don't know"
.N=".N:Not ascertained";

value income25k
1="1:<$25,000"
2="2:>=$25,000"
.="Inapplicable/Missing"
.R=".R:Refused"
.D=".D:Don't know"
.N=".N:Not ascertained";

value whyproxy
1="1:Language problem"      
2="2:SP not capable mentally"  
3="3:SP not capable physically"     
4="4:SP cannot provide info on medical record"
5="5:SP not available this round"                   
91="91:Other"     
.="Inapplicable/Missing"
.R=".R:Refused"
.D=".D:Don't know"
.N=".N:Not ascertained";

value indpuf
0="0:Not indicicated"
1="1:Indicated"
.="Inapplicable/Missing"
.R=".R:Refused"
.D=".D:Don't know"
.N=".N:Not ascertained";


run;



 
/***************************************************************************                                                                                                                                                                                                   
B2. This section applies formats to all variables in the PUF, creates new temporary
dataset WORK.PUF2015_int 
****************************************************************************/                                                                                                    
                                                             
OPTIONS FMTSEARCH=(PUFLIB PUFLIB.FORMATS);


DATA PUF2015_int;
SET PUF2015;

FORMAT
PUF_ID PUFFMT.
SVYYR SVYRFMT.
ADM_H_ENT MCARE.
ADM_H_MEDSTA MEDSTAFMT.
ADM_H_GHPSW YESFMT.
ADM_H_PDRS PDRSFMT.
ADM_H_HOSSW YESFMT.
ADM_H_INPSW YESFMT.
ADM_H_SNFSW YESFMT.
ADM_H_HHASW YESFMT.
ADM_H_OUTSW YESFMT.
ADM_H_PBSW YESFMT.
ADM_H_ACTSTY IPSTYFMT.
ADM_H_ACTDAY IPDAYFMT.
ADM_H_SNFSTY IPSTYFMT.
ADM_H_SNFDAY SNFDAYFMT.
ADM_H_HHVIS IPSTY2FMT.
ADM_H_PHYEVT PHYVIST.
ADM_OP_MDCD OPMDCD.
ADM_PARTD YESFMT.
ADM_ACOFLAG ACOFMT.
ADM_FFS_FLAG_YR FFSFMT.
ADM_MA_FLAG_YR MAFMT.
ADM_DUAL_FLAG_YR DUALFMT.
ADM_LIS_FLAG_YR PREMFMT.
ADM_PREM_AMT_YR PREM2FMT.
INS_D_PVESI YESFMT.
INS_D_PVSELF YESFMT.
INS_D_RDS INSDRDS.
INS_MCAIDHMO YESFMT.
INS_D_MADV D_MADV.
INS_MADVRX YESFMT.
INS_MTFCOVER YESFMT.
INS_D_PRIVNUM YESFMT.
INS_D_PRIVNUMC PRIVNUM.
INS_PRIVRX YESFMT.
INS_PRIVLTC YESFMT.
INS_PRIVIP YESFMT.
INS_PRIVGEN YESFMT.
INS_PRIVVIS YESFMT.
INS_PRIVDS YESFMT.
INT_SPPROXY PROXY.
INT_WHYPROXY WHYPROXY.
INT_LANG LANG.
IV_AGE AGE2GRP.
IV_SEX SEX.
IV_RACE RACE.
D_RE_AGE IVCORE.
D_ARMED YESFMT.
D_INCOME INCOME25K.
D_INCSRCE D_INCSRCEF.
ADM_H_METRO METRO.
D_EDU EDU.
D_MARSTA MARSTA.
ACC_OPDMCOND INDPUF.
ACC_OPDTESTS INDPUF.
ACC_OPDFOLUP INDPUF.
ACC_OPDCHKUP INDPUF.
ACC_OPDRFRL INDPUF.
ACC_OPDSURGY INDPUF.
ACC_OPDPSHOT INDPUF.
ACC_OPDTSHOT INDPUF.
ACC_OPDPMED INDPUF.
ACC_OPDOTHER INDPUF.
ACC_OPDAPPT APPTFMT.
ACC_OPDDRTEL OPDTELFMT.
ACC_D_OPAPPT APPTTIME.
ACC_D_OPTIME OPTTIME.
ACC_MDSPCLTY MDFMT.
ACC_SPCLKNOW SPCLKNOWF.
ACC_MDFLAG MDF.
ACC_MDMCOND INDPUF.
ACC_MDTESTS INDPUF.
ACC_MDFOLUP INDPUF.
ACC_MDCHKUP INDPUF.
ACC_MDRFRL INDPUF.
ACC_MDSURGY INDPUF.
ACC_MDPSHOT INDPUF.
ACC_MDTSHOT INDPUF.
ACC_MDPMED INDPUF.
ACC_MDOTHER INDPUF.
ACC_MDAPPT APPTFMT.
ACC_MDDRTEL OPDTELFMT.
ACC_D_MDAPPT APPT2TIME.
ACC_D_MDTIME MDTIME.
ACC_HCTROUBL YESFMT.
ACC_HCDELAY YESFMT.
ACC_MCQUALTY SATFFMT.
ACC_MCAVAIL SATFFMT.
ACC_MCEASE SATFFMT.
ACC_MCCOSTS SATFFMT.
ACC_MCINFO SATFFMT.
ACC_MCFOLUP SATFFMT.
ACC_MCCONCRN SATFFMT.
ACC_MCSAMLOC SATFFMT.
ACC_MCSPECAR SATFFMT.
ACC_MCTELANS SATFFMT.
ACC_MCDISSFY YESFMT.
ACC_MCWORRY TRUEFMT.
ACC_MCAVOID TRUEFMT.
ACC_MCSICK TRUEFMT.
ACC_MCDRSOON TRUEFMT.
ACC_MCDRNSEE TRUEFMT.
ACC_MCDRATMP YESFMT.
ACC_SCRMAIN REASON1FMT.
ACC_MCAMTPAY SATFFMT.
ACC_MCDRGLST SATFFMT.
ACC_MCFNDPCY SATFFMT.
ACC_MCRECPLN YES2FMT.
ACC_DHEVHEAR YESFMT.
ACC_DHPLAN YESFMT.
ACC_DHTHISYR YESFMT.
ACC_DHSTART DHSTFMT.
ACC_DHEND YESFMT.
ACC_DHWORRY WORRY.
ACC_PMNOTGET YESFMT.
ACC_GENERRX FREQFMT.
ACC_MAILRX FREQFMT.
ACC_DOSESRX FREQFMT.
ACC_SKIPRX FREQFMT.
ACC_DELAYRX FREQFMT.
ACC_SAMPLERX FREQFMT.
ACC_COMPARRX FREQFMT.
ACC_NOFILLRX FREQFMT.
ACC_SPENTLRX FREQFMT.
ACC_CHAINRX FREQFMT.
ACC_STOPRX FREQFMT.
ACC_CREDRX FREQFMT.
ACC_NOINSRX FREQFMT.
ACC_PLACEPAR YESFMT.
ACC_PLACEKND SITE2FMT.
ACC_PLACEMCP YESFMT.
ACC_USUALDOC YESFMT.
ACC_MDSPEC MD2FMT.
ACC_GETUSHOW SHOWFMT.
ACC_D_GETUS MINSFMT.
ACC_ACCOMPUS YESFMT.
ACC_USHOWLNG TIME8FMT.
ACC_PREVMEDC YESFMT.
ACC_USCKEVRY AGREE.
ACC_USCOMPET AGREE.
ACC_USUNWRNG AGREE.
ACC_USHURRY AGREE.
ACC_USEXPPRB AGREE.
ACC_USDISCUS AGREE.
ACC_USFAVOR AGREE.
ACC_USTELALL AGREE.
ACC_USANSQUX AGREE.
ACC_USCONFID AGREE.
ACC_USDEPEND AGREE.
ACC_NUSNOTSK YESFMT.
ACC_NUSMOVIN YESFMT.
ACC_NUSAVAIL YESFMT.
ACC_NUSDIFFP YESFMT.
ACC_NUSTOOFR YESFMT.
ACC_NUSTOOEX YESFMT.
ACC_ACCWRITE INDPUF.
ACC_ACCEXPDR INDPUF.
ACC_ACCEXPSP INDPUF.
ACC_ACCASKQS INDPUF.
ACC_ACCTRANS INDPUF.
ACC_ACCAPPTS INDPUF.
ACC_ACCMORAL INDPUF.
ACC_ACCDRIVE INDPUF.
ACC_ACCHELP INDPUF.
ACC_ACCOTHER INDPUF.
HLT_GENHELTH GENHFMT.
HLT_COMPHLTH COMPFMT.
HLT_HELMTACT TIMEFMT.
HLT_BMI_CAT BMIFMT.
HLT_ECHELP YESFMT.
HLT_ECTROUB LOOKFMT.
HLT_EDOCEXAM YESFMT.
HLT_EDOCLAST LASTFMT.
HLT_EDOCTYPE EDOFMT.
HLT_EDOCDLAT YESFMT.
HLT_ECATARAC YESFMT.
HLT_EGLAUCOM YESFMT.
HLT_ERETINOP YESFMT.
HLT_EMACULAR YESFMT.
HLT_ECCATOP YESFMT.
HLT_ELASRSUR YESFMT.
HLT_HCHELP YESFMT.
HLT_HCTROUB HCFMT.
HLT_HCKNOWMC HCFMT.
HLT_HCCOMDOC HCFMT.
HLT_DIFSTOOP DIFFFMT.
HLT_DIFLIFT DIFFFMT.
HLT_DIFREACH DIFFFMT.
HLT_DIFWRITE DIFFFMT.
HLT_DIFWALK DIFFFMT.
HLT_FUNC_LIM FUNLMTFMT.
HLT_D_LSTADL ADLHNM.
HLT_MEMLOSS YESFMT.
HLT_PROBDECS YESFMT.
HLT_TROBCONC YESFMT.
HLT_OCARTERY YESFMT.
HLT_BPTAKEN TIME2FMT.
HLT_OCHBP YESFMT.
HLT_HYPETOLD HYPETF.
HLT_OCMYOCAR YESFMT.
HLT_OCCHD YESFMT.
HLT_OCOTHHRT YESFMT.
HLT_OCCFAIL YESFMT.
HLT_OCCVALVE YESFMT.
HLT_OCRHYTHM YESFMT.
HLT_OCSTROKE YESFMT.
HLT_OCEMPHYS YESFMT.
HLT_OCCANCER YESFMT.
HLT_OCCSKIN YESFMT.
HLT_HAVEPROS YESFMT.
HLT_OCBETES YESFMT.
HLT_OCDTYPE DIAFMT.
HLT_OCDVISIT YESFMT.
HLT_OCARTHRH YESFMT.
HLT_OCARTH YESFMT.
HLT_ALZDEM YESFMT.
HLT_OCPARKIN YESFMT.
HLT_OCDEPRSS YESFMT.
HLT_OCPSYCHO YESFMT.
HLT_OCOSTEOP YESFMT.
HLT_OCBRKHIP YESFMT.
HLT_OCCHOLES YESFMT.
HLT_BCTAKEN TIME4FMT.
HLT_OCPPARAL YESFMT.
HLT_TIMESAD TIME3FMT.
HLT_LOSTINTR YESFMT.
HLT_LOSTURIN YESFMT.
HLT_TALKURIN YESFMT.
HLT_REASURIN YESFMT.
HLT_SURGURIN YESFMT.
PRV_MAMMOGRM YESFMT.
PRV_PAPSMEAR YESFMT.
PRV_HYSTEREC YESFMT.
PRV_BLOODTST YESFMT.
PRV_FLUSHOT YESFMT.
PRV_FLUSITE SITEFMT.
PRV_VACPAID YESFMT.
PRV_PNEUSHOT YESFMT.
PRV_D_VIGTIM HRACTA.
PRV_D_MODTIM HRACTB.
PRV_D_MUSTIM HRACTC.
PRV_HYPEYRS TIME5FMT.
PRV_HYPEHOME YESFMT.
PRV_HYPEDRNK YESFMT.
PRV_HYPEMEDS YESFMT.
PRV_HYPELONG TIME6FMT.
PRV_HYPEPAY YESFMT.
PRV_HYPESKIP YESFMT.
PRV_HYPECOND YESFMT.
PRV_HYPECTRL CTRLFMT.
RSK_EVERSMOK YESFMT.
RSK_SMOKNOW YESFMT.
RSK_DIDSMOKE SMKTIME.
RSK_LASTSMOK SMKTIME2F.
RSK_HAVSMOKE SMKTIME.
RSK_DRQTSMOK YESFMT.
RSK_QUITSMOK SMKQUIT.
RSK_DRINKDAY DRINKDAY.
RSK_DRINKSPD DRINKSPD.
RSK_FOURDRNK DRINK2DAY.
FAL_FALLANY YESFMT.
FAL_FALLTIME FELLTIMEFMT.
FAL_FALLHELP YESFMT.
FAL_FALLIMIT YESFMT.
FAL_FALLBACK TIME7FMT.
FAL_FALNOINJ INDPUF.
FAL_FALFRACT INDPUF.
FAL_FALSPRAN INDPUF.
FAL_FALBRUIS INDPUF.
FAL_FALCUT INDPUF.
FAL_FALOTHER INDPUF.
HOU_D_HHTOT HHTOT.
HOU_D_HHREL HHTOT.
HOU_D_HHUNRL HH2TOT.
HOU_D_HHCOMP HHCOMP.
HOU_D_HHLT50 HHLT.
HOU_D_HHGE50 HHLT.
HOU_D_HHLT18 HHLT.
HOU_DWELLING DWELFMT.
HOU_HLEVELS LEVELFMT.
HOU_HELEVTR YESFMT.
HOU_HONELEVL YESFMT.
HOU_HBTHLEVL YESFMT.
HOU_HRAMPS YESFMT.
HOU_HBATHRM YESFMT.
HOU_HRAILING YESFMT.
HOU_HOUSTYPE YESFMT.
HOU_PERSBATH YESFMT.
HOU_PERKITCH YESFMT.
HOU_HPERCARE YESFMT.
HOU_MEALPROB YESFMT.
HOU_MAIDPROB YESFMT.
HOU_WASHPROB YESFMT.
HOU_HELPPROB YESFMT.
HOU_TRANPROB YESFMT.
HOU_RECPROB YESFMT.
HOU_SERVINCL SERVFMT.
HOU_STAYPUT YESFMT.
HOU_CAREPART YESFMT.
HOU_REQAGE YESFMT.
HOU_NBRROOMS ROOMNUM.
MA_MADVYRS MADVYRS.
MA_MADVDENT YESFMT.
MA_MADVEYE YESFMT.
MA_MADVNH YESFMT.
MA_MADVPAY YESFMT.
MA_MADVDFRF REFDIF.
MA_MADVNOEM MADVNOEM.
MA_RECMADV YESFMT.
;

RUN;





/*********************************************************************************                                                                                              
C. Add labels and create permanenet dataset PUFLIB.PUF2015
                                                                                                                              
*******************************************************************************/ 

DATA PUFLIB.PUF2015;
SET PUF2015_int;
LABEL


PUF_ID="Unique PUF Identification Number"
SVYYR="Survey year"
ADM_H_ENT="Medicare entitlement code for the year"
ADM_H_MEDSTA="Medicare status code as of 12/31"
ADM_H_GHPSW="Some group health participation in year"
ADM_H_PDRS="RDS Indicator for the year"
ADM_H_HOSSW="One or more hospice bill in current year"
ADM_H_INPSW="One or more IP discharges current yr"
ADM_H_SNFSW="One or more SNF admissions in current yr"
ADM_H_HHASW="One or more HHA visits in current year"
ADM_H_OUTSW="One or more OPD visits in current yr"
ADM_H_PBSW="One or more Part B claims in current yr"
ADM_H_ACTSTY="Number of inpatient stays for current yr"
ADM_H_ACTDAY="Number of IP covered days current yr"
ADM_H_SNFSTY="Total SNF stays in current year"
ADM_H_SNFDAY="Total SNF covered days in current year"
ADM_H_HHVIS="Total HHA visits in current year"
ADM_H_PHYEVT="Total office visits in current year"
ADM_OP_MDCD="Medicare-Medicaid dual eligibility"
ADM_PARTD="Part D plan flag for the year"
ADM_ACOFLAG="Accountable Care Organization (ACO) flag"
ADM_FFS_FLAG_YR="Fee-for-Service flag for the year"
ADM_MA_FLAG_YR="Medicare Advantage flag for the year"
ADM_DUAL_FLAG_YR="Dual eligibility flag for the year"
ADM_LIS_FLAG_YR="Low income subsidy indicator for the yr"
ADM_PREM_AMT_YR="Premium subsidy coverage for the year"
INS_D_PVESI="Has employer-sponsored insurance"
INS_D_PVSELF="Has self-purchased private insurance"
INS_D_RDS="Has Retiree Drug Subsidy (RDS)"
INS_MCAIDHMO="Enrolled in a Medicaid HMO"
INS_D_MADV="Enrolled in Medicare Advantage"
INS_MADVRX="Medicare Advantage plan covers drugs"
INS_MTFCOVER="Ever recv'd services at military tx fac"
INS_D_PRIVNUM="One or more private plans (excl. RDS)"
INS_D_PRIVNUMC="Number of private plans (excl. RDS)"
INS_PRIVRX="Private plan covers RX drugs (excl. RDS)"
INS_PRIVLTC="Private plan covers nursing home"
INS_PRIVIP="Private plan covers inpatient costs"
INS_PRIVGEN="Private plan covers general insurance"
INS_PRIVVIS="Private plan covers vision"
INS_PRIVDS="Private plan covers dental"
INT_SPPROXY="Self - respondent or proxy"
INT_WHYPROXY="Why proxy is needed"
INT_LANG="Language of interview"
IV_AGE="Age group"
IV_SEX="Gender"
IV_RACE="Race/ethnicity group"
D_RE_AGE="Race/ethnicity age group"
D_ARMED="Ever served in armed forces"
D_INCOME="Income group"
D_INCSRCE="Source of income data"
ADM_H_METRO="Metro status"
D_EDU="Highest grade completed"
D_MARSTA="Marital status"
ACC_OPDMCOND="Reason for OPD visit: medical condition"
ACC_OPDTESTS="Reason for OPD visit: tests"
ACC_OPDFOLUP="Reason for OPD visit: follow-up"
ACC_OPDCHKUP="Reason for OPD visit: checkup"
ACC_OPDRFRL="Reason for OPD visit: referral"
ACC_OPDSURGY="Reason for OPD visit: surgery"
ACC_OPDPSHOT="Reason for OPD visit: preventative shot"
ACC_OPDTSHOT="Reason for OPD visit: treatment shot"
ACC_OPDPMED="Reason for OPD visit: medication"
ACC_OPDOTHER="Reason for OPD visit: other"
ACC_OPDAPPT="OPD visit by appt or walk-in"
ACC_OPDDRTEL="Did someone in OPD tell to come back"
ACC_D_OPAPPT="Days waited for OPD appointment"
ACC_D_OPTIME="Minutes wait at OPD"
ACC_MDSPCLTY="Dr specialty MD visit-excl in home/hosp"
ACC_SPCLKNOW="Does Spec know enough of SP med history"
ACC_MDFLAG="Flag indicates if had MD visit"
ACC_MDMCOND="Reason Dr seen: med condition"
ACC_MDTESTS="Reason Dr seen: tests"
ACC_MDFOLUP="Reason Dr seen: follow-up"
ACC_MDCHKUP="Reason Dr seen: checkup"
ACC_MDRFRL="Reason Dr seen: referral"
ACC_MDSURGY="Reason Dr seen: surgery"
ACC_MDPSHOT="Reason Dr seen: preventative shot"
ACC_MDTSHOT="Reason Dr seen: treatment shot"
ACC_MDPMED="Reason Dr seen: medication"
ACC_MDOTHER="Reason Dr seen: other"
ACC_MDAPPT="Was visit to doc appointment or walk-in"
ACC_MDDRTEL="Doctor's office tell come back"
ACC_D_MDAPPT="Days waited for doctor's appointment"
ACC_D_MDTIME="Minutes wait at Dr"
ACC_HCTROUBL="Has SP had troub get needed health care?"
ACC_HCDELAY="Last year ever delay in care due to cost"
ACC_MCQUALTY="Satisfaction: qual of med care last year"
ACC_MCAVAIL="Satisfaction: medical care night/wkend"
ACC_MCEASE="Satisfaction: ease get to Dr from home"
ACC_MCCOSTS="Satisfaction: OOP costs for med services"
ACC_MCINFO="Satisfaction: info abt what was wrong"
ACC_MCFOLUP="Satisfaction: follow up after initial tx"
ACC_MCCONCRN="Satisfaction: Dr concern w/overall hlth"
ACC_MCSAMLOC="Satisfaction: med care at same location"
ACC_MCSPECAR="Satisfaction: avail care by specialists"
ACC_MCTELANS="Satisfaction: phone answers for tx or RX"
ACC_MCDISSFY="Dissatisfied w/things about med services"
ACC_MCWORRY="Worry abt hlth more than others your age"
ACC_MCAVOID="Do almost anything to avoid going to Dr"
ACC_MCSICK="When sick - try keeping sickness to self"
ACC_MCDRSOON="Usually go to Dr as soon as feel bad"
ACC_MCDRNSEE="Hlth prob thght Dr should see but didn't"
ACC_MCDRATMP="Attempt to set up Dr appt abt condition"
ACC_SCRMAIN="Main reason to not see Dr"
ACC_MCAMTPAY="Satisfaction: amt paid for RX drugs"
ACC_MCDRGLST="Satisfaction:RX plan list/drugs covered"
ACC_MCFNDPCY="Satisfaction: find pharmacy accept RX"
ACC_MCRECPLN="Recommend Rx plan to other people"
ACC_DHEVHEAR="Ever hear about cvg gap before"
ACC_DHPLAN="MPDP/MADV have cvg gap"
ACC_DHTHISYR="Start cvg gap this year"
ACC_DHSTART="How found out cvg gap"
ACC_DHEND="Ever reached end of cvg gap"
ACC_DHWORRY="Worry paying RX during cvg gap"
ACC_PMNOTGET="Were there prescribed meds didn't get"
ACC_GENERRX="How often ask for generic form of RX"
ACC_MAILRX="How often purchased RX via mail/internet"
ACC_DOSESRX="How often took smaller dose of RX"
ACC_SKIPRX="How often skipped doses to make RX last"
ACC_DELAYRX="How often delayed RX because of cost"
ACC_SAMPLERX="How often asked for RX samples from Dr"
ACC_COMPARRX="How often compared prices for best price"
ACC_NOFILLRX="How often not get RX because of cost"
ACC_SPENTLRX="How often spent less $ to save for Rx"
ACC_CHAINRX="How often purchased RX through big chain"
ACC_STOPRX="How often talk to Dr about stop RX"
ACC_CREDRX="How often pay with credit card for RX"
ACC_NOINSRX="How often purchase discounted RX w/o ins"
ACC_PLACEPAR="Ever go to particular place for med care"
ACC_PLACEKND="Kind of place usually go for med care"
ACC_PLACEMCP="Doctor/clinic associated with MCP"
ACC_USUALDOC="Have particular doctor usually see"
ACC_MDSPEC="Doctor specialty: usual source of care"
ACC_GETUSHOW="How usually get to doc office"
ACC_D_GETUS="Time it usually takes to get doc office"
ACC_ACCOMPUS="Does someone accompany to doc office"
ACC_USHOWLNG="Years seeing doc/going service to place"
ACC_PREVMEDC="Before usual doc ever seen other doc"
ACC_USCKEVRY="Doctor checks everything when examining"
ACC_USCOMPET="Doctor is competent and well-trained"
ACC_USUNWRNG="Dr completely understands what's wrong"
ACC_USHURRY="Doctor seems to be in a hurry"
ACC_USEXPPRB="Doctor doesn't explain medical problems"
ACC_USDISCUS="Hlth probs shld be discussed but are not"
ACC_USFAVOR="Doc acts as if doing a favor by talking"
ACC_USTELALL="Doc tells all about med condition/tx"
ACC_USANSQUX="Doctor answers all questions"
ACC_USCONFID="Have great confidence in doctor"
ACC_USDEPEND="Depend on doc to feel better"
ACC_NUSNOTSK="No USC: Seldom/never sick"
ACC_NUSMOVIN="No USC: Recent move to area"
ACC_NUSAVAIL="No USC: USC no longer available"
ACC_NUSDIFFP="No USC: Like different place"
ACC_NUSTOOFR="No USC: Places are too far away"
ACC_NUSTOOEX="No USC: Cost too expensive"
ACC_ACCWRITE="Someone accompanies to take notes"
ACC_ACCEXPDR="Someone accompanies explain things to dr"
ACC_ACCEXPSP="Someone accompanies explain instructions"
ACC_ACCASKQS="Someone accompanies to ask questions"
ACC_ACCTRANS="Someone accompanies to translate"
ACC_ACCAPPTS="Someone accompanies to schedule appt"
ACC_ACCMORAL="Someone accompanies for moral support"
ACC_ACCDRIVE="Someone accompanies for transportation"
ACC_ACCHELP="Someone accompanies to assist with ADLs"
ACC_ACCOTHER="Someone accompanies for other reason"
HLT_GENHELTH="General health compared others same age"
HLT_COMPHLTH="General health compared to one year ago"
HLT_HELMTACT="Limited social activities (past month)"
HLT_BMI_CAT="BMI categories (kg/m^2)"
HLT_ECHELP="SP Wear Eyeglasses/Contact Lenses"
HLT_ECTROUB="Description of SP's Vision"
HLT_EDOCEXAM="Has SP had Eye Exam since Ref Date"
HLT_EDOCLAST="How Long since Last Eye Exam"
HLT_EDOCTYPE="Eye Care Professional Last Exam"
HLT_EDOCDLAT="Eye Doctor Ever Dilate Eyes"
HLT_ECATARAC="Ever Told had Cataracts"
HLT_EGLAUCOM="Ever Told had Glaucoma"
HLT_ERETINOP="Ever Told had Diabetic Retinopathy"
HLT_EMACULAR="Ever Told had Macular Degeneration"
HLT_ECCATOP="Ever had Operation for Cataracts"
HLT_ELASRSUR="Ever had Laser Eye Surgery"
HLT_HCHELP="SP use Hearing Aid"
HLT_HCTROUB="Description of SP's Hearing"
HLT_HCKNOWMC="How Diff to find MC info due to Hearing"
HLT_HCCOMDOC="How diff to comm w/ Dr. due to Hearing"
HLT_DIFSTOOP="Difficulty stooping/crouching/kneeling"
HLT_DIFLIFT="Difficulty lifting/carrying 10 pounds"
HLT_DIFREACH="Difficulty extending arms above shoulder"
HLT_DIFWRITE="Difficulty writing/handling object"
HLT_DIFWALK="Difficulty walking 1/4 mile"
HLT_FUNC_LIM="Functional limitations: IADLs and ADLs"
HLT_D_LSTADL="Number helpers for listed ADLs/IADLs"
HLT_MEMLOSS="Memory loss interfere daily activity"
HLT_PROBDECS="Problem make decisions interferes ADLs"
HLT_TROBCONC="Trouble concentrating"
HLT_OCARTERY="Hardening of arteries (ever)"
HLT_BPTAKEN="How long since BP taken"
HLT_OCHBP="Hypertension/high BP (ever)"
HLT_HYPETOLD="Told on 2+ visits had high BP"
HLT_OCMYOCAR="MI/heart attack (ever)"
HLT_OCCHD="Angina pectoris/CHD (ever)"
HLT_OCOTHHRT="Other heart conditions (ever)"
HLT_OCCFAIL="Congestive heart failure (ever)"
HLT_OCCVALVE="Problems with heart valves (ever)"
HLT_OCRHYTHM="Problems with heart rhythm (ever)"
HLT_OCSTROKE="Stroke/brain hemorrhage (ever)"
HLT_OCEMPHYS="Emphysema/asthma/COPD (ever)"
HLT_OCCANCER="Other (non-skin) cancer (ever)"
HLT_OCCSKIN="Skin cancer (ever)"
HLT_HAVEPROS="Enlarged prostate/BPH (ever)"
HLT_OCBETES="Diabetes/high blood sugar (ever)"
HLT_OCDTYPE="Type of diabetes diagnosed"
HLT_OCDVISIT="Told on 2+ visits had diabetes"
HLT_OCARTHRH="Rheumatoid arthritis (ever)"
HLT_OCARTH="Non-rheumatoid arthritis (ever)"
HLT_ALZDEM="Ever told Alzheimer's or dx of dementia"
HLT_OCPARKIN="Parkinson's disease (ever)"
HLT_OCDEPRSS="Depression (ever)"
HLT_OCPSYCHO="Ever told had mental disorder"
HLT_OCOSTEOP="Osteoporosis/soft bones (ever)"
HLT_OCBRKHIP="Broken hip (ever)"
HLT_OCCHOLES="High cholesterol (ever)"
HLT_BCTAKEN="How long since blood cholesterol taken"
HLT_OCPPARAL="Complete/partial paralysis (ever)"
HLT_TIMESAD="How often felt sad/depressed (past year)"
HLT_LOSTINTR="Lost interest (past year)"
HLT_LOSTURIN="How often lost urine control (past year)"
HLT_TALKURIN="Talked to Dr about urine control"
HLT_REASURIN="Medical exam for urine control problem"
HLT_SURGURIN="Dr talked urine control meds/surgery"
PRV_MAMMOGRM="Mammogram/breast X-ray (past year)"
PRV_PAPSMEAR="Pap smear (past year)"
PRV_HYSTEREC="Hysterectomy (ever)"
PRV_BLOODTST="PSA prostate blood test (past year)"
PRV_FLUSHOT="Flu shot for last winter"
PRV_FLUSITE="Where last flu shot was administered"
PRV_VACPAID="Paid some or all the cost of flu shot"
PRV_PNEUSHOT="Pneumonia shot (ever)"
PRV_D_VIGTIM="Hrs/wk spent doing vigorous activities"
PRV_D_MODTIM="Hrs/wk spent doing moderate activities"
PRV_D_MUSTIM="Hrs/wk spent increasing muscle strength"
PRV_HYPEYRS="Years since 1st told of hgh bld pressure"
PRV_HYPEHOME="Measures BP at home"
PRV_HYPEDRNK="Reducing alcohol intake due to high BP"
PRV_HYPEMEDS="Takes meds for high BP"
PRV_HYPELONG="How long taken meds for high BP (years)"
PRV_HYPEPAY="Difficulty paying for BP meds"
PRV_HYPESKIP="Skip/share BP meds b/c high cost"
PRV_HYPECOND="Side effects from BP meds"
PRV_HYPECTRL="How confident in control of BP"
RSK_EVERSMOK="Ever smoked cigarettes/cigars/tobacco"
RSK_SMOKNOW="Currently smokes"
RSK_DIDSMOKE="Number of years did smoke"
RSK_LASTSMOK="How long since last smoked regularly"
RSK_HAVSMOKE="Number of years have smoked"
RSK_DRQTSMOK="Doctor asked to quit smoking"
RSK_QUITSMOK="Quit smoking (past year)"
RSK_DRINKDAY="Number of days/month drink alcohol"
RSK_DRINKSPD="Number of alcohol drinks per day"
RSK_FOURDRNK="Number of days/month has 4+ drinks"
FAL_FALLANY="Fallen down (past year)"
FAL_FALLTIME="Number of times fallen (past year)"
FAL_FALLHELP="Fall required medical help"
FAL_FALLIMIT="Limit activities b/c fall"
FAL_FALLBACK="Time to get back to regular activities"
FAL_FALNOINJ="No injury from fall"
FAL_FALFRACT="Fracture from fall"
FAL_FALSPRAN="Sprain from fall"
FAL_FALBRUIS="Bruise from fall"
FAL_FALCUT="Cut from fall"
FAL_FALOTHER="Other injury from fall"
HOU_D_HHTOT="Total Number of People in Household"
HOU_D_HHREL="Num in HH Related to SP (Including SP)"
HOU_D_HHUNRL="Total Num People in HH Unrelated to SP"
HOU_D_HHCOMP="Household Composition Code"
HOU_D_HHLT50="Num in HH Under 50 (May Include SP)"
HOU_D_HHGE50="Num in HH 50 and Over (May Include SP)"
HOU_D_HHLT18="Num <18 related to SP (May Include SP)"
HOU_DWELLING="Description of Home"
HOU_HLEVELS="Levels in SP Housing"
HOU_HELEVTR="Elevator in SP Housing"
HOU_HONELEVL="One Level Living Space"
HOU_HBTHLEVL="Bathroom on All Levels"
HOU_HRAMPS="Ramps at Entrances"
HOU_HBATHRM="Does SP Bathroom have Modifications"
HOU_HRAILING="Special Railing in Housing"
HOU_HOUSTYPE="Is Housing in Special Comm Type in HA10"
HOU_PERSBATH="SP Have Own Bath Facilities"
HOU_PERKITCH="SP Have Kitchen"
HOU_HPERCARE="SP Housing Have Personal Care"
HOU_MEALPROB="Do You Have Access to Prepared Meals"
HOU_MAIDPROB="Do You Have Access to Cleaning Services"
HOU_WASHPROB="Do You Have Access to Laundry Services"
HOU_HELPPROB="Do You Have Access to Help w/Medications"
HOU_TRANPROB="Do You Have Access to Transportation"
HOU_RECPROB="Do You Have Access to Rec Services"
HOU_SERVINCL="Personal Srvcs Included in Housing Cost"
HOU_STAYPUT="Stay in Same Housing if Need More Care"
HOU_CAREPART="Provide Care in Diff Part of Housing"
HOU_REQAGE="Must be Certain Age for Housing"
HOU_NBRROOMS="How Many Rooms in Housing"
MA_MADVYRS="Years enrolled in Medicare Advantage"
MA_MADVDENT="Mcare Adv plan covers dental"
MA_MADVEYE="Mcare Adv plan covers eye exams"
MA_MADVNH="Mcare Adv plan covers nursing home"
MA_MADVPAY="Ever pay additional for Mcare Adv cvg"
MA_MADVDFRF="Difficulty get referrals thru Mcare Adv"
MA_MADVNOEM="Mcare Adv refused to pay emergency care"
MA_RECMADV="Recommend Mcare Adv to family/friends"
EEYRSWGT="Ever Enrolled full sample weight"
EEYRS001="Ever Enrolled replicate weight 1"
EEYRS002="Ever Enrolled replicate weight 2"
EEYRS003="Ever Enrolled replicate weight 3"
EEYRS004="Ever Enrolled replicate weight 4"
EEYRS005="Ever Enrolled replicate weight 5"
EEYRS006="Ever Enrolled replicate weight 6"
EEYRS007="Ever Enrolled replicate weight 7"
EEYRS008="Ever Enrolled replicate weight 8"
EEYRS009="Ever Enrolled replicate weight 9"
EEYRS010="Ever Enrolled replicate weight 10"
EEYRS011="Ever Enrolled replicate weight 11"
EEYRS012="Ever Enrolled replicate weight 12"
EEYRS013="Ever Enrolled replicate weight 13"
EEYRS014="Ever Enrolled replicate weight 14"
EEYRS015="Ever Enrolled replicate weight 15"
EEYRS016="Ever Enrolled replicate weight 16"
EEYRS017="Ever Enrolled replicate weight 17"
EEYRS018="Ever Enrolled replicate weight 18"
EEYRS019="Ever Enrolled replicate weight 19"
EEYRS020="Ever Enrolled replicate weight 20"
EEYRS021="Ever Enrolled replicate weight 21"
EEYRS022="Ever Enrolled replicate weight 22"
EEYRS023="Ever Enrolled replicate weight 23"
EEYRS024="Ever Enrolled replicate weight 24"
EEYRS025="Ever Enrolled replicate weight 25"
EEYRS026="Ever Enrolled replicate weight 26"
EEYRS027="Ever Enrolled replicate weight 27"
EEYRS028="Ever Enrolled replicate weight 28"
EEYRS029="Ever Enrolled replicate weight 29"
EEYRS030="Ever Enrolled replicate weight 30"
EEYRS031="Ever Enrolled replicate weight 31"
EEYRS032="Ever Enrolled replicate weight 32"
EEYRS033="Ever Enrolled replicate weight 33"
EEYRS034="Ever Enrolled replicate weight 34"
EEYRS035="Ever Enrolled replicate weight 35"
EEYRS036="Ever Enrolled replicate weight 36"
EEYRS037="Ever Enrolled replicate weight 37"
EEYRS038="Ever Enrolled replicate weight 38"
EEYRS039="Ever Enrolled replicate weight 39"
EEYRS040="Ever Enrolled replicate weight 40"
EEYRS041="Ever Enrolled replicate weight 41"
EEYRS042="Ever Enrolled replicate weight 42"
EEYRS043="Ever Enrolled replicate weight 43"
EEYRS044="Ever Enrolled replicate weight 44"
EEYRS045="Ever Enrolled replicate weight 45"
EEYRS046="Ever Enrolled replicate weight 46"
EEYRS047="Ever Enrolled replicate weight 47"
EEYRS048="Ever Enrolled replicate weight 48"
EEYRS049="Ever Enrolled replicate weight 49"
EEYRS050="Ever Enrolled replicate weight 50"
EEYRS051="Ever Enrolled replicate weight 51"
EEYRS052="Ever Enrolled replicate weight 52"
EEYRS053="Ever Enrolled replicate weight 53"
EEYRS054="Ever Enrolled replicate weight 54"
EEYRS055="Ever Enrolled replicate weight 55"
EEYRS056="Ever Enrolled replicate weight 56"
EEYRS057="Ever Enrolled replicate weight 57"
EEYRS058="Ever Enrolled replicate weight 58"
EEYRS059="Ever Enrolled replicate weight 59"
EEYRS060="Ever Enrolled replicate weight 60"
EEYRS061="Ever Enrolled replicate weight 61"
EEYRS062="Ever Enrolled replicate weight 62"
EEYRS063="Ever Enrolled replicate weight 63"
EEYRS064="Ever Enrolled replicate weight 64"
EEYRS065="Ever Enrolled replicate weight 65"
EEYRS066="Ever Enrolled replicate weight 66"
EEYRS067="Ever Enrolled replicate weight 67"
EEYRS068="Ever Enrolled replicate weight 68"
EEYRS069="Ever Enrolled replicate weight 69"
EEYRS070="Ever Enrolled replicate weight 70"
EEYRS071="Ever Enrolled replicate weight 71"
EEYRS072="Ever Enrolled replicate weight 72"
EEYRS073="Ever Enrolled replicate weight 73"
EEYRS074="Ever Enrolled replicate weight 74"
EEYRS075="Ever Enrolled replicate weight 75"
EEYRS076="Ever Enrolled replicate weight 76"
EEYRS077="Ever Enrolled replicate weight 77"
EEYRS078="Ever Enrolled replicate weight 78"
EEYRS079="Ever Enrolled replicate weight 79"
EEYRS080="Ever Enrolled replicate weight 80"
EEYRS081="Ever Enrolled replicate weight 81"
EEYRS082="Ever Enrolled replicate weight 82"
EEYRS083="Ever Enrolled replicate weight 83"
EEYRS084="Ever Enrolled replicate weight 84"
EEYRS085="Ever Enrolled replicate weight 85"
EEYRS086="Ever Enrolled replicate weight 86"
EEYRS087="Ever Enrolled replicate weight 87"
EEYRS088="Ever Enrolled replicate weight 88"
EEYRS089="Ever Enrolled replicate weight 89"
EEYRS090="Ever Enrolled replicate weight 90"
EEYRS091="Ever Enrolled replicate weight 91"
EEYRS092="Ever Enrolled replicate weight 92"
EEYRS093="Ever Enrolled replicate weight 93"
EEYRS094="Ever Enrolled replicate weight 94"
EEYRS095="Ever Enrolled replicate weight 95"
EEYRS096="Ever Enrolled replicate weight 96"
EEYRS097="Ever Enrolled replicate weight 97"
EEYRS098="Ever Enrolled replicate weight 98"
EEYRS099="Ever Enrolled replicate weight 99"
EEYRS100="Ever Enrolled replicate weight 100"
;
RUN;




