/************************ mathpeek.sas *************************/ title 'Prediction of Performance in First-year Calculus'; title2 'Read data and locate problems'; data math; infile '/home/u1407221/441s24/data/math.data.txt'; input id course precalc calc gpa calculus english mark lang $ sex $ nation1 nation2 sample; /* proc contents; */ proc freq data=math; title3 'Frequency distributions of all variables'; /* Don't print this! */ tables _all_; /* After looking at frequency distributions, locate problem cases if necessary */ proc print data=math; title3 'Strange marks in HS English'; where english=0 or english > 100; proc print data=math; title3 'Students with Strange High School Marks'; where gpa = 0 or english=0 or english > 100 or calculus=0 or calculus>100;