Good day
In my data set I have three grouping variables in total, age_group no_jabs and illness, and a dependent variable severity.
I want to determine whether a grouping variable, jabs, has an effect on my continuous variable, severity.
I first checked normality of severity with a histogram plot with kernel and normal overlay. CONCLUDED normality.
Thereafter I want to test homogeneity of my variances using Levene's test, code I used:
proc GLM data = health; *Variance/Levene's test;
CLASS age_group no_jabs comorb;
MODEL severity = age_group|no_jabs|comorb;
output out=ResData r=ResVar p=PredVar;
run;quit;
and I looked at the Pr > F column in the model row of the output, which is: <.0001: Does this mean I have homogeneity in my variances?
If so, how do I finally test the effect of the no_jabs variable on my severity variable?
I first checked normality of severity with a histogram plot with kernel and normal overlay. CONCLUDED normality.
Completely unnecessary and not needed for PROC GLM. see https://blogs.sas.com/content/iml/2018/08/27/on-the-assumptions-and-misconceptions-of-linear-regress...
and I looked at the Pr > F column in the model row of the output, which is: <.0001: Does this mean I have homogeneity in my variances?
Nothing in your code requests a homogeneity of variance test. So your output does not contain a homogeneity of variance test. To obtain a homogeneity of variance test, you would need to use the MEANS command with the HOVTEST option.
I first checked normality of severity with a histogram plot with kernel and normal overlay. CONCLUDED normality.
Completely unnecessary and not needed for PROC GLM. see https://blogs.sas.com/content/iml/2018/08/27/on-the-assumptions-and-misconceptions-of-linear-regress...
and I looked at the Pr > F column in the model row of the output, which is: <.0001: Does this mean I have homogeneity in my variances?
Nothing in your code requests a homogeneity of variance test. So your output does not contain a homogeneity of variance test. To obtain a homogeneity of variance test, you would need to use the MEANS command with the HOVTEST option.
First, you used a model with all main effects, all two-way interactions and the three-way interaction. Now you are using a model with just one variable. I'm not sure why you switched, but if you believe that there are interactions, or even other main effects, I would use the larger model to determine what is and is not statistically significant.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.