1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;7071 /* describemath.sas */72 title 'Gender, Ethnicity and Math performance';73 title2 'Basic descriptive statistics on the exploratory sample';7475 proc format;76 value ynfmt 0 = 'No' 1 = 'Yes';NOTE: Format YNFMT is already on the library WORK.FORMATS.NOTE: Format YNFMT has been output.77 value crsfmt 4 = 'No Resp';NOTE: Format CRSFMT is already on the library WORK.FORMATS.NOTE: Format CRSFMT has been output.78 value nfmt79 1 = 'Asian'80 2 = 'Eastern European'81 3 = 'European not Eastern'82 4 = 'Middle-Eastern and Pakistani'83 5 = 'East Indian'84 6 = 'Other and DK' ;NOTE: Format NFMT is already on the library WORK.FORMATS.NOTE: Format NFMT has been output.85NOTE: PROCEDURE FORMAT used (Total process time):real time 0.00 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 245.84kOS Memory 32164.00kTimestamp 01/27/2020 12:12:04 AMStep Count 61 Switch Count 0Page Faults 0Page Reclaims 59Page Swaps 0Voluntary Context Switches 0Involuntary Context Switches 0Block Input Operations 0Block Output Operations 3286 data math;87 infile '/home/brunner0/441s20/exploremath.data.txt';88 input id course precalc calc gpa calculus english mark lang $ sex $89 nation1 nation2 sample;9091 /* Computed Variables: totscore, passed, grade, hsgpa, hscalc, hsengl,92 tongue, ethnic */9394 totscore = precalc+calc;95 if (50<=mark<=100) then passed=1; else passed=0;96 /* Some missing final marks were zero, and 998=SDF and 999=WDR */97 if mark=0 then grade=.;98 else if mark > 100 then grade=.;99 else grade=mark;100 /* Missing HS marks were zeros */101 if 65 le gpa le 100 then hsgpa = gpa; /* Else missing is automatic */102 if 0 < calculus < 101 then hscalc = calculus;103 if 0 < english < 101 then hsengl = english;104 /* There were just a few French speakers */105 if lang='French' then tongue='Other '; else tongue=lang;106 label tongue = 'Mother Tongue (Eng or Other)';107 /* Rater 1 knows Middle Eastern names -- otherwise believe Rater 2 */108 if nation1=4 then ethnic=nation1; else ethnic=nation2;109110 /********************************************************************/111112 label113 precalc = 'Number precalculus correct'114 calc = 'Number calculus correct'115 totscore = 'Total # right on diagnostic test'116 passed = 'Passed the course'117 grade = 'Final mark'118 hsgpa = 'High School GPA'119 hscalc = 'HS Calculus'120 hsengl = 'HS English'121 lang = 'Mother Tongue'122 nation1 = 'Nationality of name acc to rater1'123 nation2 = 'Nationality of name acc to rater2'124 tongue = 'Mother Tongue (Eng or Other)'125 ethnic = 'Judged Nationality of name' ;126127 format course crsfmt.;128 format passed ynfmt.;129 format nation1 nation2 ethnic nfmt.;130131 /*********************************************************************/132NOTE: The infile '/home/brunner0/441s20/exploremath.data.txt' is:Filename=/home/brunner0/441s20/exploremath.data.txt,Owner Name=brunner0,Group Name=oda,Access Permission=-rw-r--r--,Last Modified=26Jan2020:18:49:34,File Size (bytes)=44583NOTE: 579 records were read from the infile '/home/brunner0/441s20/exploremath.data.txt'.The minimum record length was 75.The maximum record length was 75.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).99 at 94:24NOTE: The data set WORK.MATH has 579 observations and 21 variables.NOTE: DATA statement used (Total process time):real time 0.05 secondsuser cpu time 0.00 secondssystem cpu time 0.00 secondsmemory 789.50kOS Memory 32424.00kTimestamp 01/27/2020 12:12:04 AMStep Count 62 Switch Count 2Page Faults 0Page Reclaims 105Page Swaps 0Voluntary Context Switches 18Involuntary Context Switches 0Block Input Operations 0Block Output Operations 264133 proc means;134 title3 'Quantitative Variables';135 var precalc calc totscore hsgpa hscalc hsengl grade;136NOTE: There were 579 observations read from the data set WORK.MATH.NOTE: PROCEDURE MEANS used (Total process time):real time 0.07 secondsuser cpu time 0.06 secondssystem cpu time 0.01 secondsmemory 8331.21kOS Memory 38588.00kTimestamp 01/27/2020 12:12:04 AMStep Count 63 Switch Count 2Page Faults 0Page Reclaims 1606Page Swaps 0Voluntary Context Switches 26Involuntary Context Switches 0Block Input Operations 0Block Output Operations 8137 proc freq;138 title3 'Categorical variables';139 tables course sex ethnic tongue passed;140NOTE: There were 579 observations read from the data set WORK.MATH.NOTE: PROCEDURE FREQ used (Total process time):real time 0.05 secondsuser cpu time 0.05 secondssystem cpu time 0.01 secondsmemory 1181.65kOS Memory 33708.00kTimestamp 01/27/2020 12:12:04 AMStep Count 64 Switch Count 3Page Faults 0Page Reclaims 132Page Swaps 0Voluntary Context Switches 22Involuntary Context Switches 0Block Input Operations 0Block Output Operations 280141 proc sgplot;142 title3 'Bar chart of ethnic background';143 vbar ethnic;144145 proc univariate normal plot;NOTE: PROCEDURE SGPLOT used (Total process time):real time 0.22 secondsuser cpu time 0.07 secondssystem cpu time 0.01 secondsmemory 13810.28kOS Memory 44712.00kTimestamp 01/27/2020 12:12:04 AMStep Count 65 Switch Count 3Page Faults 0Page Reclaims 3407Page Swaps 0Voluntary Context Switches 218Involuntary Context Switches 0Block Input Operations 0Block Output Operations 784NOTE: There were 579 observations read from the data set WORK.MATH.146 /* The normal option gives tests of H0: Data are normal.147 Plot produces graphics, some of which are informative. */148 title3 'Detailed look at grade';149 var grade;150NOTE: PROCEDURE UNIVARIATE used (Total process time):real time 0.29 secondsuser cpu time 0.15 secondssystem cpu time 0.01 secondsmemory 3915.93kOS Memory 47452.00kTimestamp 01/27/2020 12:12:04 AMStep Count 66 Switch Count 1Page Faults 0Page Reclaims 764Page Swaps 0Voluntary Context Switches 313Involuntary Context Switches 0Block Input Operations 0Block Output Operations 528151 proc freq;152 title3 'Frequency Distribution of Final Grade';153 tables grade;154155 /* The following suggests that profs in Courses 1 and 3 bumped156 the marks discontinuously, while the prof in Course 2 did157 something more sophisticated. */158NOTE: There were 579 observations read from the data set WORK.MATH.NOTE: PROCEDURE FREQ used (Total process time):real time 0.10 secondsuser cpu time 0.10 secondssystem cpu time 0.00 secondsmemory 1424.62kOS Memory 46764.00kTimestamp 01/27/2020 12:12:05 AMStep Count 67 Switch Count 3Page Faults 0Page Reclaims 193Page Swaps 0Voluntary Context Switches 23Involuntary Context Switches 0Block Input Operations 0Block Output Operations 352159 proc freq;160 title3 'Grade separately by course';161 where course < 4; /* Exclude no response */162 tables grade*course / norow nopercent nopercent;163164 quit;NOTE: There were 570 observations read from the data set WORK.MATH.WHERE course<4;NOTE: PROCEDURE FREQ used (Total process time):real time 0.32 secondsuser cpu time 0.33 secondssystem cpu time 0.00 secondsmemory 1304.84kOS Memory 47280.00kTimestamp 01/27/2020 12:12:05 AMStep Count 68 Switch Count 10Page Faults 0Page Reclaims 228Page Swaps 0Voluntary Context Switches 47Involuntary Context Switches 1Block Input Operations 0Block Output Operations 648165166167 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;178