BookmarkSubscribeRSS Feed
Haytch
Calcite | Level 5

Hi there,

 

I have a project for a course I am doing, and we are supposed to run a 2-way ANOVA. I have used a pre-set to do this and there seem to be no tests for equality of variances which I need. Is there any way I can do this? 

 

Thanks.

1 REPLY 1
PaigeMiller
Diamond | Level 26

In PROC GLM, use the HOVTEST of the MEANS statement performs this test, but only for a one-way model.

 

So, what you could do is to turn your two-way ANOVA into a one-way ANOVA for the purpose of performing this test. To do this, all possible combinations of your two way factors are combined into a single factor and then the HOVTEST will work. For example, using data set SASHELP.CLASS:

 

You have two class variables SEX (levels M and F) and several levels of AGE. To turn this into a single factor, you would have

 

F13

M13

F14

M14

 

etc.

 

 

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 861 views
  • 0 likes
  • 2 in conversation