I'm new in SAS and I'm having problems to generate Pearson Chi-squared and p-value. I tried some tutorials and Youtube videos but I failed.
I`d like to use Proc Freq to generate a cross tabulation of the CO2_level and Yield_category variables. Also get the Pearson Chi-squared test statistic and p-value associated with this cross tabulation. However, when I run the code I get only the frequency as an output.
My code is:
proc freq data=growth;
tables CO2_level*Yield_category/nopercent norow testp=(50 25 25);
run;
My result is the following table:
Can anyone help me to solve that?
Thanks,
Carlos