Most likely you will see something like this in your SAS log. You need at least two non-missing categories for both of your variables to do the Chi Square test.
34 proc freq data = sashelp.class;
35 where Sex = 'F';
36 table age * sex / chisq;
37 run;
NOTE: No statistics are computed for Age * Sex since Sex has less than 2 nonmissing levels.
NOTE: There were 9 observations read from the data set SASHELP.CLASS.
WHERE Sex='F';
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.09 seconds
cpu time 0.04 seconds
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.