* Example for one sample testing problem; options pagesize=53 linesize=76 pageno=1 nodate; data keybrd; input time; centered=time-47.20; label time="Completion Time" centered="Completion Time - 47.20"; datalines; 42.86 37.56 31.47 46.46 36.36 58.05 35.49 43.31 36.19 42.79 41.64 38.77 54.99 37.63 55.70 43.78 41.68 37.90 50.70 47.74 48.94 59.93 41.63 38.12 run; proc sort; by time; * increasing order; * by descending time; * for decreasing order; title "Testing for Population Mean "; title2 "Completion Time of 47.20"; * page heading literal; proc print label; * column headings are labels; * variable names otherwise; var centered time; * optional statement; * default: all variables in order created; proc means n nmiss mean std stderr median min max maxdec=3; * n: number of observations; * nmiss: number missing obs.; * mean: average of obs.; * std: standard deviation; * stderr: standard error = std/(n)1/2 ; * t: t for testing if population mean is zero = mean/stderr; * can only test for zero, testing centered for zero,same as testing time for 47.20; * prt: p-value for t test; * maxdec=3: round to 3 digits; var time; * optional statement; * default: all numeric variables in order created; proc univariate normal; * normal: test for normality; * plot: request three plots:stem and leaf plot, box (and whiskers) plot, normal (probability) plot; var centered; * same as for proc means; histogram/normal cfill=white pfill=solid midpoints=-15 to 15 by 3; probplot/normal(mu=est sigma=est w=1 l=1); run;