![]() Chapter Contents |
![]() Previous |
![]() Next |
| The FREQ Procedure |
| Procedure features: |
| ||||||||||||||||||||
| Other features: |
| ||||||||||||||||||||
| Data set: | COLOR |
| Program |
| | options nodate pageno=1 pagesize=60; proc freq data=color order=data; weight count; |
| | tables eyes*hair /chisq expected cellchi2
norow nocol; |
| | output out=chisqdat pchi lrchi n nmiss; title 'Chi-Square Tests for 3 by 5 Table of Eye and Hair Color'; run; |
| | proc print data=chisqdat noobs; title 'Chi-Square Statistics for Eye and Hair Color'; title2 'Output Data Set from the FREQ Procedure'; run; |
| Output |
| The output data set has one observation that contains the sample size, number of missing observations, and chi-square statistics with the corresponding degrees of freedom and probability values. |
|
|
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.