This example uses the Color data from Example 28.1 to output the Pearson chi-square and the likelihood-ratio chi-square statistics to a SAS data set. The following statements create a two-way table of ...
What is the chi-squared test? The chi-squared test, often written as χ 2 test, is a statistical hypothesis test used in the analysis of categorical variables to determine whether observed data are ...
The frequency tables list the variable values (hair color) in the order in which they appear in the data set. The "Test Percent" column lists the hypothesized percentages for the chi-square test.