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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 574 views
  • 0 likes
  • 2 in conversation