1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;5556 /******************* senicreg1.sas *****************/57 /* Basic multiple regression on SENIC Data */58 /***************************************************/59 %include '/folders/myfolders/2453f15/senicread.sas'; /* senicread.sas reads data, etc. */NOTE: Format REGFMT is already on the library WORK.FORMATS.NOTE: Format REGFMT has been output.NOTE: Format ACATFMT is already on the library WORK.FORMATS.NOTE: Format ACATFMT has been output.NOTE: PROCEDURE FORMAT used (Total process time):real time 0.00 secondscpu time 0.00 seconds111 title2 'Multiple Regression One';112 /* Make indicator dummy vars. These definitions could (should) be113 in senicdef.sas */114 if region = 1 then r1=1; else r1=0; /* Northeast */115 if region = 2 then r2=1; else r2=0; /* North Central */116 if region = 3 then r3=1; else r3=0; /* South, and 4=West */117 if medschl = 'Y' then mschool = 1;118 else if medschl = 'N' then mschool = 0;119 /* mschool is an indicator for medical school = yes.120 Note what happens to missing values. */121NOTE: The infile '/folders/myfolders/2453f15/senicdata.txt' is:Filename=/folders/myfolders/2453f15/senicdata.txt,Owner Name=root,Group Name=vboxsf,Access Permission=-rwxrwx---,Last Modified=02Sep2015:16:07:37,File Size (bytes)=6102NOTE: 113 records were read from the infile '/folders/myfolders/2453f15/senicdata.txt'.The minimum record length was 52.The maximum record length was 52.NOTE: Missing values were generated as a result of performing an operation on missing values.Each place is given by: (Number of times) at (Line):(Column).1 at 103:24NOTE: The data set WORK.SENIC has 113 observations and 18 variables.NOTE: DATA statement used (Total process time):real time 0.03 secondscpu time 0.04 seconds122 proc freq;123 title3 'Check new variable mschool';124 tables mschool*medschl /norow nocol nopercent missing;125NOTE: There were 113 observations read from the data set WORK.SENIC.NOTE: PROCEDURE FREQ used (Total process time):real time 0.14 secondscpu time 0.14 seconds126 proc reg;127 title3 'Without xratio and culratio';128 model infrisk = stay age nbeds census nurses service129 r1-r3 mschool;130 Region: test r1=r2=r3=0;131 Size: test nbeds=census=nurses=0;132NOTE: PROCEDURE REG used (Total process time):real time 2.61 secondscpu time 1.04 seconds133 proc reg;134 title3 'With xratio and culratio';135 model infrisk = stay age nbeds census nurses service xratio culratio136 r1-r3 mschool;137 Region: test r1=r2=r3=0;138 Size: test nbeds=census=nurses=0;139140141142143144145146 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;158