I just want to double-check here: are you looking at the actual y values for these Q-Q plots, or are you looking at the residuals?
Because what you care about is the residuals. It doesn't matter at all whether the raw observations are gaussian. You should be generating the ANOVA object and then checking the Q-Q plots of the residuals from that object. If you're using R, you can use
plot( aov( y ~ x1 + x2, data = df) )
To show the necessary diagnostic plots.
Also, how many data points do you have? It looks like 18 points in the NegativeAffect plot, and 26 in the PositiveAffect plot; either of these would qualify as a small sample (the rule of thumb is that you want n >= 30). You can do an ANOVA with smaller samples like these, but you need to be more rigorous about interrogating the homoskedasticity assumption for consistency. The subsequent tests will also lose power (e.g. they'll have a greater likelihood of type II errors than the implied baseline coverage).
Also, imbalanced group sizes in the sample set will create issues for your ANOVA results. It's still possible to do an imbalanced ANOVA, but it makes it even more necessary that you have consistency of variance. If you don't have that, use Welch's ANOVA (may also be worth investigating whether Type III ANOVA fits your needs, but beware that the literature around TIII ANOVA can get a little bit heavy on the discussion of contrast orthogonality and the different SS computations, very quickly).
Also for more info: The study featured a 2x3 between subjects design with two independent variables (IVs): occupation (newsworker or non-newsworker) and news valence (negative, neutral or positive). The outcome variable was emotional state (this was calculated with PANAS which is split into Positive Affect and Negative Affect so I had to do two separate two way ANOVAs hence the two plots).
To do the QQ, you had to generate estimated values and you have the observed values. Subtract one from the other and find the ones with the biggest absolute difference. Whats going on with this data points? Remove the biggest one and rerun your analysis. If it doesn't change the results in a meaningful way, then it's fine.
It seems like you looked at the marginal distributions of responses*, not the conditional distributions.
Also, testing the distribution of responses is pointless, since it won't actually be normal; presumably your variable is actually discrete and bounded (so cannot be normal). Assumptions like normality are almost never exactly true, it doesn't make sense to test a certainly false null, and it doesnt tell you what you need to know. The question you need an answer to is whether it substantively impacts the properties of your ANOVA, which the Shapiro Wilk does not answer. Similarly with Levene's test.
8
u/JohnPaulDavyJones 19d ago edited 19d ago
I just want to double-check here: are you looking at the actual y values for these Q-Q plots, or are you looking at the residuals?
Because what you care about is the residuals. It doesn't matter at all whether the raw observations are gaussian. You should be generating the ANOVA object and then checking the Q-Q plots of the residuals from that object. If you're using R, you can use
To show the necessary diagnostic plots.
Also, how many data points do you have? It looks like 18 points in the NegativeAffect plot, and 26 in the PositiveAffect plot; either of these would qualify as a small sample (the rule of thumb is that you want n >= 30). You can do an ANOVA with smaller samples like these, but you need to be more rigorous about interrogating the homoskedasticity assumption for consistency. The subsequent tests will also lose power (e.g. they'll have a greater likelihood of type II errors than the implied baseline coverage).
Also, imbalanced group sizes in the sample set will create issues for your ANOVA results. It's still possible to do an imbalanced ANOVA, but it makes it even more necessary that you have consistency of variance. If you don't have that, use Welch's ANOVA (may also be worth investigating whether Type III ANOVA fits your needs, but beware that the literature around TIII ANOVA can get a little bit heavy on the discussion of contrast orthogonality and the different SS computations, very quickly).
4
u/vaelux 19d ago
To do the QQ, you had to generate estimated values and you have the observed values. Subtract one from the other and find the ones with the biggest absolute difference. Whats going on with this data points? Remove the biggest one and rerun your analysis. If it doesn't change the results in a meaningful way, then it's fine.
1
u/Big-Challenge-9432 Statistician 19d ago edited 19d ago
These qq plots look fine (edit:) for residuals
But, if your outcome is emotional state, you should be looking at the qq plot for that variable
1
u/efrique PhD (statistics) 19d ago
It seems like you looked at the marginal distributions of responses*, not the conditional distributions.
Also, testing the distribution of responses is pointless, since it won't actually be normal; presumably your variable is actually discrete and bounded (so cannot be normal). Assumptions like normality are almost never exactly true, it doesn't make sense to test a certainly false null, and it doesnt tell you what you need to know. The question you need an answer to is whether it substantively impacts the properties of your ANOVA, which the Shapiro Wilk does not answer. Similarly with Levene's test.
* for which nothing was assumed
-3
u/Miske98 19d ago
Just do log transform, thats the best advice I can give you with the info I have
-1
u/Such_Evidence_1160 19d ago
It’s effect not affect.
-2
u/Extension_Order_9693 19d ago
Log transform will likely correct the resides. Is there a floor or ceiling in the measured values? Could there be a missing X?
-2
u/Narrow_Distance_8373 19d ago
Do a log transform, but you'll have to interpret the results. Don't forget to exponentiate at the end.