Looking at the mpg data file, let’s assume we believe that our data consist of 50% front-wheel drive car, 10% rear-wheel drive car and 40% four-wheel drive car. We want to test whether the observed proportions from our sample significantly differ from these hypothesized proportions. The hypothesized proportions are placed in parentheses after the testp= option on the tables statement. Note all my codes have been test under SAS version 9.3.
proc freq data = mpg; tables drv / chisq testp=(40 50 10); run;
These results show that the composition of engine layout in our sample does not differ significantly from the hypothesized values that we supplied (p = .3521).