BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have some data that I need to run a chi-square test on that seems to take a long time to set up. Here is an example of some data that is similar to mine:

Question: What month do you fish the most?

JAN 8
FEB 9
MAR 20
APR 35
MAY 34
JUN 55
JUL 58
AUG 78
SEP 65
OCT 55
NOV 32
DEC 7

Each number represents the number of respondents that indicated that month was the month they fished the most. I'll run a goodness of fit test on this and get a low p-value indicating the number of responses is not equally distributed among months. Well, that's kind of obvious although it's good to have the results indicating so. What I really need to do is compare the responses month by month to see where the differences occur. Previously I would spend a long time preparing data to run tons and tons of goodness of fit tests to compare the response frequencies of each month to one another. I would do this by creating columns for just comparing January to February, then columns to compare just January to March, then columns to compare just January to April, and so on until the response frequencies of each month were tested against an equal distribution null hypothesis. This takes hours to do, and I have a lot of tests similar to this. My question is; is there an option in SAS to automate this process, or at least an easier way to set up the data? I've searched all over for an answer to this and have not succeeded in finding one yet. Any help would be greatly appreciated and save me days of work.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 509 views
  • 0 likes
  • 1 in conversation