Help using Base SAS procedures

Chi Square Goodness of Fit Post Hoc?

Reply
Regular Learner
Posts: 1

Chi Square Goodness of Fit Post Hoc?

I am pretty new to using SAS and I feel like I have googled for hours at this point. I've done a chi-square goodness of fit test to compare observed monthly proportions to expected monthly proportions and have gotten a significant result. Now I want to know which specific months differ with respect to observed vs. expected. Is there a test that will lay out the significance of each month?

SAS Super FREQ
Posts: 4,240

Re: Chi Square Goodness of Fit Post Hoc?

You might want to look at the CORRESP procedure, which enables you to request the "Contributions to the Chi-Square Statistic." The option is called CELLCHI2.

 

proc corresp data=SASHELP.CARS dimens=2 observed expected deviation cellchi2;
   where Type^="Hybrid";
   tables Type, Origin;
run;
Ask a Question
Discussion stats
  • 1 reply
  • 148 views
  • 0 likes
  • 2 in conversation