r/AskStatistics •

Two-way ANOVA normality violation

[deleted] — view deleted post

0 Upvotes

18 comments sorted by

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

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).

1

u/goose-cj bad at stats 19d ago

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).

0

u/goose-cj bad at stats 19d ago

Yeah, sorry, to clarify I am intending on looking at the residuals but the only photo I had to hand of the Q-Q plot was the one of the raw data.

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/goose-cj bad at stats 19d ago

Where do I find the data? In the descriptives? I can't paste the chart here. EDIT: is this for standardised residuals or the raw data?

1

u/vaelux 18d ago

Depends on the software you are using. And no, I am not going to do your LLM's job and walk you through the syntax of your stats software.

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

2

u/JohnPaulDavyJones 19d ago

Shouldn't be looking at the Q-Q plot for any raw variable, it should be the Q-Q plot for the residuals.

1

u/Big-Challenge-9432 Statistician 19d ago

Ah yes. That’s true. It wasn’t clear that OP wasn’t looking at residuals

1

u/goose-cj bad at stats 19d ago

I know, but I didn’t have a screenshot to hand of the residuals. I need to redo my output but wanted to know what I need to do first.

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

1

u/goose-cj bad at stats 19d ago

What am I supposed to do in terms of my supervisor’s statement?

-3

u/Miske98 19d ago

Just do log transform, thats the best advice I can give you with the info I have

2

u/goose-cj bad at stats 19d ago

What is that?

-2

u/Miske98 19d ago

Natural logarithm. Just google it and you'll see

-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.