BookmarkSubscribeRSS Feed
palolix
Obsidian | Level 7

How can I test homogeneity of variances to my ANOVA model when having more than 1 factor, using Levene for example?

Thank you very much!

Caroline

2 REPLIES 2
SteveDenham
Jade | Level 19

One way is to test a means model in PROC GLM, something like:

proc glm data=yourdata;

class factor1 factor2 factor3;

model response=factor1*factor2*factor3;

means factor1*factor2*factor3/hovtest=bf;

run;

This does Brown and Forsythe's version of Levene's test--testing at the finest granularity in your data.

Another possibility is in PROC GLIMMIX.  See example 41.9 Testing Equality of Covariance and Correlation Matrices in the documentation.  The likelihood ratio test is closer to a Bartlett's test than Levene's.

Steve Denham

palolix
Obsidian | Level 7

Thank you very much for your help Steve!!

Caroline

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1387 views
  • 0 likes
  • 2 in conversation