Create a SAS data set (UNI) that contains 1000 random numbers in the range of 1 to 5. Use the INT function to give you only integers, and be sure that there is an equal likelihood of choosing each of the five integers. Be careful that the values of 1 and 5 have the same probability of being chosen as 2, 3,and 4. Run PROC FREQ to count the number of 1s, 2s,and so forth, and compute chi-square using the tables option TESTP=(list-of-proportions). This TABLES option allows you to enter a list of lest proportions for a one-way test. For this problem, the tables statement would read:
By the way, there is also a TESTF option where you enter frequencies (counts) rather than proportions.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here