libname assig "G:\Sem 4\SAS"; proc format; value SEXf 1 = Male 2 = Female ; value MARITALf 1 = Never married 2 = Married 3 = Divorced 4 = Separated 5 = Widowed ; value EDUCATf 1 = "Less than high school" 2 = "Some high school" 3 = "Finished high school" 4 = "Some college " 5 = "Finished bachelor's degree " 6 = "Finished master's degree" 7 = "Finished doctorate "; value EMPLOYf 1 = Full time 2 = Part time 3 = Unemployed 4 = Retired 5 = Houseperson 6 = In school 7 = Other ; value RELIGf 1 = Protestant 2 = Catholic 3 = Jewish 4 = None 5 = Other ; value Ceesf 0 = 'Rarely or none of the time (less than 1 day)' 1 = 'Some or a little of the time (1 or 2 days)' 2 = 'Occasionally or a moderate amount of the time (3 or 4 days)' 3 = 'Most or all of the time (5 to 7 days)'; value CASESf 0 = 'Normal' 1 = 'Depressed, where depressed is CESD>=16'; value DRINKf 1 = Yes 2 = No ; value HEALTHf 1 = Excellent 2 = Good 3 = Fair 4 = Poor; value REGDOCf 1 = Yes 2 = No; value TREATmf 1 = Yes 2 = No; value BEDDAYSf 1 = Yes 0 = No ; value ACUTEILLf 1 = Yes 0 = No ; value CHRONILLf 1 = Yes 0 = No ; data assig.depress2; infile "G:\Sem 4\SAS\Raw_data\depression1.txt"; input id sex age marital educat employ income relig c1-c20 cesd cases drink health regdoc treat beddays acuteill chronill; format sex sexf. marital maritalf. educat educatf. employ employf. relig religf. cases casesf. c1-c20 ceesf. drink drinkf. health healthf. regdoc regdocf. treat treatmf. beddays beddaysf. acuteill acuteillf. chronill chronillf.; label ID= ='Identification number' SEX ='Gender of participant' AGE ='Age in years at last birthday' MARITAL ='Marital status' EDUCAT ='Education' EMPLOY ='Employment Status' INCOME ='Income in thousands of dollars per year' RELIG ='Religion' CESD ='Sum of C1--20 0 = lowest level possible 60 = highest level possible' DRINK ='Regular drinker?' HEALTH ='General health?' REGDOC ='Have a regular doctor?' TREAT ='Has a doctor prescribed or recommended that you take medicine, medical treatments, or change your way of living in such areas as smoking,special diet, exercise, or drinking?' BEDDAYS ='Spent entire day(s) in bed in last two months?' ACUTEILL ='Any acute illness in last two months?' CHRONILL ='Any chronic illness in last year?'; run; axis1 label=(angle=90 font=swiss height=1); axis2 label=(font=swiss height=1) value=(font=swiss height=1); run; proc gplot data=assig.depress2; plot income*employ/vaxis=axis1 haxis=axis2; symbol v=dot height=1; label income="Income" employ="Employment"; run; proc reg data=assig.depress2 where sex=2; model cesd= age income education/vif selection = forward slentry=0.15; run;