1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;NOTE: ODS statements in the SAS Studio environment may disable some output features.7374 /* senic3.sas */7576 %include '/home/u1407221/441s24/SAS02/senicread.sas';NOTE: Format YESNOFMT is already on the library WORK.FORMATS.NOTE: Format YESNOFMT has been output.NOTE: Format REGFMT is already on the library WORK.FORMATS.NOTE: Format REGFMT has been output.NOTE: PROCEDURE FORMAT used (Total process time):real time 0.00 secondsuser cpu time 0.01 secondssystem cpu time 0.00 secondsmemory 242.96kOS Memory 32420.00kTimestamp 12/26/2023 10:01:03 PMStep Count 45 Switch Count 0Page Faults 0Page Reclaims 18Page Swaps 0Voluntary Context Switches 0Involuntary Context Switches 0Block Input Operations 0Block Output Operations 32146 title2 'Explore with Elementary tests';147NOTE: The infile '/home/u1407221/441s24/SAS02/openSENIC2.data.txt' is:Filename=/home/u1407221/441s24/SAS02/openSENIC2.data.txt,Owner Name=u1407221,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=21Dec2023:11:37:19,File Size (bytes)=8585NOTE: 100 records were read from the infile '/home/u1407221/441s24/SAS02/openSENIC2.data.txt'.The minimum record length was 83.The maximum record length was 83.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).3 at 112:16 3 at 114:44 2 at 115:43NOTE: The data set WORK.SENIC has 100 observations and 18 variables.NOTE: DATA statement used (Total process time):real time 0.01 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 676.43kOS Memory 32936.00kTimestamp 12/26/2023 10:01:03 PMStep Count 46 Switch Count 3Page Faults 0Page Reclaims 132Page Swaps 0Voluntary Context Switches 27Involuntary Context Switches 0Block Input Operations 0Block Output Operations 264148 proc corr;149 title3 'Correlations';150 var census -- infpercent quality -- w;151152 /* Equivalent to153 census nbeds nurses lngstay age xratio culratio infpercent154 quality mschool nc ne s w155 The nomiss option would yield casewise deletion of missing values.156 To get correlations of set A with set B, you could do something like157 proc corr;158 var a1 a2 a3;159 with b1 b2 b3 b4;160 */161162 /* proc plot is old fashioned -- line printer grahics!163 proc plot;164 title3 'Scatterplot';165 plot quality * infpercent;166 */167NOTE: PROCEDURE CORR used (Total process time):real time 0.25 secondsuser cpu time 0.26 secondssystem cpu time 0.00 secondsmemory 4622.34kOS Memory 33960.00kTimestamp 12/26/2023 10:01:03 PMStep Count 47 Switch Count 1Page Faults 0Page Reclaims 315Page Swaps 0Voluntary Context Switches 8Involuntary Context Switches 0Block Input Operations 0Block Output Operations 96168 proc sgplot;169 title3 'Scatterplot with least-squares line';170 reg x=quality y=infpercent;171172 proc sgscatter;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.21 secondsuser cpu time 0.09 secondssystem cpu time 0.02 secondsmemory 20313.40kOS Memory 51880.00kTimestamp 12/26/2023 10:01:03 PMStep Count 48 Switch Count 2Page Faults 0Page Reclaims 5451Page Swaps 0Voluntary Context Switches 304Involuntary Context Switches 0Block Input Operations 0Block Output Operations 1240NOTE: There were 100 observations read from the data set WORK.SENIC.173 title3 'Scatterplot matrix';174 matrix census -- infpercent quality;175176 proc sgplot;NOTE: PROCEDURE SGSCATTER used (Total process time):real time 1.59 secondsuser cpu time 0.42 secondssystem cpu time 0.02 secondsmemory 6995.78kOS Memory 59308.00kTimestamp 12/26/2023 10:01:05 PMStep Count 49 Switch Count 2Page Faults 0Page Reclaims 4441Page Swaps 0Voluntary Context Switches 352Involuntary Context Switches 1Block Input Operations 0Block Output Operations 8704NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: Some of the tick values have been thinned.NOTE: There were 100 observations read from the data set WORK.SENIC.177 title3 'Number of beds and infection risk';178 reg x=nbeds y=infpercent;179180 proc sgplot;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.26 secondsuser cpu time 0.16 secondssystem cpu time 0.01 secondsmemory 4123.68kOS Memory 59360.00kTimestamp 12/26/2023 10:01:05 PMStep Count 50 Switch Count 2Page Faults 0Page Reclaims 1252Page Swaps 0Voluntary Context Switches 283Involuntary Context Switches 0Block Input Operations 0Block Output Operations 1416NOTE: There were 100 observations read from the data set WORK.SENIC.181 title3 'Number of beds and infection risk: By med school affiliation';182 scatter x=nbeds y=infpercent / group = mdschl;183184 /* Need ods graphics to set options (plotting symbols) */185 ods graphics on / attrpriority=none;186 proc sgplot; /* With clearer plotting symbols */NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.15 secondsuser cpu time 0.06 secondssystem cpu time 0.01 secondsmemory 3090.53kOS Memory 57772.00kTimestamp 12/26/2023 10:01:05 PMStep Count 51 Switch Count 3Page Faults 0Page Reclaims 580Page Swaps 0Voluntary Context Switches 566Involuntary Context Switches 0Block Input Operations 0Block Output Operations 784NOTE: There were 100 observations read from the data set WORK.SENIC.187 title3 'Number of beds and infection risk: By med school affiliation';188 styleattrs datasymbols=(Circle SquareFilled);189 scatter x=nbeds y=infpercent / group = mdschl ;190 run;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.14 secondsuser cpu time 0.06 secondssystem cpu time 0.01 secondsmemory 3261.59kOS Memory 57772.00kTimestamp 12/26/2023 10:01:05 PMStep Count 52 Switch Count 2Page Faults 0Page Reclaims 552Page Swaps 0Voluntary Context Switches 556Involuntary Context Switches 0Block Input Operations 0Block Output Operations 752NOTE: There were 100 observations read from the data set WORK.SENIC.191 ods graphics / reset;192193 /* Tried Region and it was not useful */194195 proc corr;196 title3 'Just hospitals with med school affiliation';197 where mdschl = 'Yes';198 var nbeds infpercent;199NOTE: PROCEDURE CORR used (Total process time):real time 0.03 secondsuser cpu time 0.03 secondssystem cpu time 0.00 secondsmemory 1926.68kOS Memory 57004.00kTimestamp 12/26/2023 10:01:05 PMStep Count 53 Switch Count 1Page Faults 0Page Reclaims 94Page Swaps 0Voluntary Context Switches 10Involuntary Context Switches 0Block Input Operations 0Block Output Operations 24200 proc reg plots=none; /* Suppress diagnostic plots for now*/201 title3 'Simple regression (One explanatory variable)';202 model infpercent = nurses;203 /* Can do lots of analyses at once by giving a list of response variables. */204205NOTE: PROCEDURE REG used (Total process time):real time 0.03 secondsuser cpu time 0.03 secondssystem cpu time 0.00 secondsmemory 2483.87kOS Memory 58816.00kTimestamp 12/26/2023 10:01:05 PMStep Count 54 Switch Count 2Page Faults 0Page Reclaims 305Page Swaps 0Voluntary Context Switches 25Involuntary Context Switches 0Block Input Operations 0Block Output Operations 72206 proc ttest;207 title3 'Less Risk at Hospitals with Med School Affiliation?';208 class mdschl;209 var infpercent;210NOTE: PROCEDURE TTEST used (Total process time):real time 0.50 secondsuser cpu time 0.22 secondssystem cpu time 0.09 secondsmemory 10247.43kOS Memory 63948.00kTimestamp 12/26/2023 10:01:06 PMStep Count 55 Switch Count 49Page Faults 0Page Reclaims 26554Page Swaps 0Voluntary Context Switches 1276Involuntary Context Switches 0Block Input Operations 0Block Output Operations 1872211 proc freq;212 title3 'Relationship between region and medical school affiliation';213 tables mdschl*region / norow nopercent chisq;214 /* Can do lots of analyses at once with syntax like215 tables (var1 var2 var3) * (item1-item15); */216NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE FREQ used (Total process time):real time 0.04 secondsuser cpu time 0.04 secondssystem cpu time 0.00 secondsmemory 1645.68kOS Memory 59312.00kTimestamp 12/26/2023 10:01:06 PMStep Count 56 Switch Count 5Page Faults 0Page Reclaims 190Page Swaps 0Voluntary Context Switches 38Involuntary Context Switches 0Block Input Operations 0Block Output Operations 552217 proc freq;218 title3 'With expected frequencies';219 tables mdschl*region / norow nopercent chisq expected;220NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE FREQ used (Total process time):real time 0.03 secondsuser cpu time 0.04 secondssystem cpu time 0.00 secondsmemory 1184.12kOS Memory 59312.00kTimestamp 12/26/2023 10:01:06 PMStep Count 57 Switch Count 5Page Faults 0Page Reclaims 189Page Swaps 0Voluntary Context Switches 32Involuntary Context Switches 0Block Input Operations 0Block Output Operations 552221 proc glm;222 title3 'Regional differences in average infection risk?';223 class region;224 model infpercent = region;225 means region;226227 /* Could get the means from proc means, with no extra boxplots */228NOTE: PROCEDURE GLM used (Total process time):real time 0.31 secondsuser cpu time 0.17 secondssystem cpu time 0.02 secondsmemory 4700.71kOS Memory 60860.00kTimestamp 12/26/2023 10:01:06 PMStep Count 58 Switch Count 3Page Faults 0Page Reclaims 1235Page Swaps 0Voluntary Context Switches 993Involuntary Context Switches 0Block Input Operations 0Block Output Operations 1200229 proc means;230 class region;231 var infpercent;232233NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE MEANS used (Total process time):real time 0.02 secondsuser cpu time 0.02 secondssystem cpu time 0.01 secondsmemory 8946.37kOS Memory 67004.00kTimestamp 12/26/2023 10:01:06 PMStep Count 59 Switch Count 1Page Faults 0Page Reclaims 2030Page Swaps 0Voluntary Context Switches 21Involuntary Context Switches 0Block Input Operations 0Block Output Operations 8234 proc glm plots=none;235 title3 'Check regional differences in all quantitative variables';236 class region;237 model census -- infpercent quality = region;238 means region;239 run;NOTE: PROCEDURE GLM used (Total process time):real time 0.32 secondsuser cpu time 0.32 secondssystem cpu time 0.00 secondsmemory 1899.21kOS Memory 59320.00kTimestamp 12/26/2023 10:01:07 PMStep Count 60 Switch Count 3Page Faults 0Page Reclaims 229Page Swaps 0Voluntary Context Switches 25Involuntary Context Switches 1Block Input Operations 0Block Output Operations 536240241242243244245246 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;258