BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RCPenguin
Calcite | Level 5

Hello friends,

I have a data set of survey results that were collected from students. I have a 2x3 table and want to see the association between two variables. I compiled the data and inputed it into SAS and attempted to use Two-Way Anova for comparison. All is going according to plan but when i ran the interaction from proc glm for two variables, SAS was unable to give me a p-value and it was left blank. If I to understand this as meaning the p-value is so tiny, it is nonexistant?

Pengy

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Yes, it sounds like you have count data, so a chi-square test is more appropriate based on what you're saying.

View solution in original post

7 REPLIES 7
Reeza
Super User

You say 2x3 table but then Anova which makes me wonder. What type of data did you collect, categorical or continuous?

RCPenguin
Calcite | Level 5

Well my data was a question that the students responded to. I either marked them down as "Yes, No, or Undecided" and separated answers based on gender which produced the 2x3 table. I assumed Two-way Anova was the right course of action but maybe a chi-square test would be more fitting?

Reeza
Super User

Yes, it sounds like you have count data, so a chi-square test is more appropriate based on what you're saying.

RCPenguin
Calcite | Level 5

My only concern is additionally, I need to determine the expected cell counts and test to see if gender and survey response are associated/have interaction. Would a chi square test be able to show interaction? Maybe a box plot cold be beneficial for that?

Reeza
Super User

Look at proc freq.  A visual display of data is always good, but box plots are for continuous data. 

Here's an example that sort of matches up what you're trying to do.

Base SAS(R) 9.2 Procedures Guide: Statistical Procedures, Third Edition

RCPenguin
Calcite | Level 5

Thank you for assisting, Reeza Smiley Happy

evsanten
Calcite | Level 5

One last thing. There now is a way to do Mosaic plots in Proc Freq. See link to Rick Wicklin's blog

Create mosaic plots in SAS by using PROC FREQ - The DO Loop

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
  • 7 replies
  • 2020 views
  • 7 likes
  • 3 in conversation