1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;6869 /********************* senic1.sas ***************************/70 title 'Open SENIC Data';71 title2 'Basic Descriptive Statistics';7273 proc format;73 ! /* Value labels used in data step below */74 value yesnofmt 1 = 'Yes' 0 = 'No' ;NOTE: Format YESNOFMT is already on the library WORK.FORMATS.NOTE: Format YESNOFMT has been output.75 value regfmt 1 = 'Northeast'76 2 = 'North Central'77 3 = 'South'78 4 = 'West' ;NOTE: Format REGFMT is already on the library WORK.FORMATS.NOTE: Format REGFMT has been output.79NOTE: PROCEDURE FORMAT used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 248.00kOS Memory 21152.00kTimestamp 12/21/2023 05:08:04 PMStep Count 59 Switch Count 0Page Faults 0Page Reclaims 19Page Swaps 0Voluntary Context Switches 0Involuntary Context Switches 0Block Input Operations 0Block Output Operations 3280 data senic;81 infile '/home/u1407221/441s24/SAS02/openSENIC2.data.txt' firstobs=2;82 /* Skip the first line that R uses */83 input id region mdschl $ census nbeds nurses lngstay age84 xratio culratio infpercent;8586 /* Fix up problems */87 if mdschl = '?' then mdschl = ' '; /* Blank = missing for character vars */88 if age = 999 then age = .;89 if infpercent = 999 then infpercent = .;9091 /***** Recodes, computes & ifs *****/92 if 0<age<=53 then agecat = '53 & under';93 else if age>53 then agecat='Over 53';94 label agecat = 'Average patient age';95 quality=(2*nurses+nbeds+10*culratio96 +10*xratio-2*lngstay);97 if mdschl eq 'No' then quality=quality/2;98 if (region eq 3) then quality=quality-100;99 label quality = 'Jerry''s bogus hospital quality index';100NOTE: 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 95:16 3 at 97:44 2 at 98:43NOTE: The data set WORK.SENIC has 100 observations and 13 variables.NOTE: DATA statement used (Total process time):real time 0.00 secondsuser cpu time 0.01 secondssystem cpu time 0.00 secondsmemory 781.37kOS Memory 21668.00kTimestamp 12/21/2023 05:08:04 PMStep Count 60 Switch Count 2Page Faults 0Page Reclaims 137Page Swaps 0Voluntary Context Switches 20Involuntary Context Switches 0Block Input Operations 0Block Output Operations 272101 proc freq;102 title3 'Frequency distributions of categorical variables';103 tables region mdschl agecat;104NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE FREQ used (Total process time):real time 0.02 secondsuser cpu time 0.02 secondssystem cpu time 0.00 secondsmemory 1789.00kOS Memory 22184.00kTimestamp 12/21/2023 05:08:04 PMStep Count 61 Switch Count 3Page Faults 0Page Reclaims 245Page Swaps 0Voluntary Context Switches 19Involuntary Context Switches 0Block Input Operations 0Block Output Operations 272105 proc means;106 title3 'Table of means and standard deviations';107 var census nbeds nurses lngstay age xratio culratio infpercent108 quality;109110 /* How did SAS handle the missing value for age? */111NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE MEANS used (Total process time):real time 0.03 secondsuser cpu time 0.03 secondssystem cpu time 0.01 secondsmemory 6473.75kOS Memory 27576.00kTimestamp 12/21/2023 05:08:04 PMStep Count 62 Switch Count 2Page Faults 0Page Reclaims 1454Page Swaps 0Voluntary Context Switches 26Involuntary Context Switches 0Block Input Operations 0Block Output Operations 0112 proc freq;113 title3 'Check missing value for age';114 tables age * agecat / norow nocol nopercent missing;115116 run;NOTE: There were 100 observations read from the data set WORK.SENIC.NOTE: PROCEDURE FREQ used (Total process time):real time 0.14 secondsuser cpu time 0.15 secondssystem cpu time 0.00 secondsmemory 1238.31kOS Memory 22956.00kTimestamp 12/21/2023 05:08:04 PMStep Count 63 Switch Count 5Page Faults 0Page Reclaims 227Page Swaps 0Voluntary Context Switches 35Involuntary Context Switches 0Block Input Operations 0Block Output Operations 600117118 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;128