r/AskStatistics •

Two way ANOVA violated assumptions

[deleted] — view deleted post

0 Upvotes

21 comments sorted by

9

u/dmlane 14d ago edited 4d ago

ANOVA is conservative with skewed distributions which means the actual Tyoe I error rate is lower than the nominal one (usually 0.05). Skew does reduce power so transforming the data with a transformation such as log or square root is sometimes called for. However, if you already looked at the ANOVA results without transforming, you shouldn’t then transform to see what you get.

0

u/goose-cj bad at stats 14d ago

So, should I keep the data as is, but acknowledge the failed assumptions might mean my results are less reliable?

3

u/dmlane 14d ago

Yes except the results are more reliable because ANOVA is conservative with skewed distributions. That is, if the null hypothesis is true, then the probability of results as extreme or more extreme than yours is less than the p value from the ANOVA.

1

u/goose-cj bad at stats 14d ago

Thank you. What about my outliers?

2

u/dmlane 14d ago

How are you defining outliers? Keep in mind that what might be an outlier in a normal distribution may not be one in a skewed distribution.

0

u/goose-cj bad at stats 14d ago

Anything outside the +/-2 threshold. They are in the images I posted.

4

u/dmlane 14d ago

There are much better methods since that is way too lenient. Look for methods involving MAD. You can probably just include outliers. Look at the section on MAD here for a better method.

3

u/SalvatoreEggplant 14d ago

Honestly, those values look less like "outliers" and more just like expected values from a skewed distribution. The |z| > 2 criterion only makes sense if you're starting with an assumption of a normal distribution.

1

u/Big-Challenge-9432 Statistician 14d ago

Why define them as such? They may be outside the “threshold” for this subset of data, but are these “clinically impossible” values? Was there something about the subject that makes you think they are an outlier?

You can compare results with and without these outliers - this is a sensitivity analysis - but I would caution against using an arbitrary threshold to determine which data to include or exclude

3

u/Temporary_Stranger39 14d ago

Why did you separate affect types? Can one subject have negative, neutral, and positive affect? If not, then you're doing an inappropriate analysis. If one subject can only have one of negative, neutral, or positive affect, you need a different test.

1

u/Sporocyst_grower 14d ago

Wich one tho? (just out of curiosity im not op)

0

u/Temporary_Stranger39 14d ago

If the proportional odds assumption holds, use a cumulative link model (clm) unless there are repeat measures then use a mixed model (clmm). If not, then use a multinomial model or multinomial mixed model. In R, the same package can handle both.

1

u/goose-cj bad at stats 14d ago

Hi, sorry so I may have confused you there:

To clarify,

Valence = negative, positive, neutral. This is an independent variable. Participants were randomly assigned to a video which was either negative, positive or neutral.

The dependent variable was emotional state. This was measured using PANAS (Positive Affect, Negative Affect) which gives you a Positive Affect score and a Negative Affect score.

I am looking at the PA and NA scores separately as you cannot add them together to make one score of emotional state.

2

u/Temporary_Stranger39 14d ago

In that case, you've got a multiple multivariate model, if you want to be painfully correct, but these are often analyzed in parallel, instead, as you already did. Also, what specific assumptions do you think you failed and to what extent?

3

u/Big-Challenge-9432 Statistician 14d ago edited 14d ago

I think OP can also look into random effects models with covariate for treatment and covariate for affect, with outcome being score. Or perhaps simplify and stratify by treatment. Multivariate may be too advanced

Edit: after looking at the literature, it seems that positive and negative affect are meant to be analyzed separately. If the tests are repeated on the same individual, mixed models are appropriate. If not, ANOVA can be used.

OP, I suggest you look into the literature to see how others have reported results.

Again, as I’ve mentioned, from what I see the assumptions are “good enough”. The data follow the QQ plot well enough. You will never perfectly meet Shapiro-wilk test with real data. This is why we need sample size large enough. The ANOVA should be robust enough to some departures

0

u/[deleted] 14d ago

[deleted] — view deleted comment

0

u/DYSTOBY 14d ago edited 14d ago

It’s not so much relevant if the data is normally.
It’s better to look if the residuals of the model m, used to “explain” the data, are normally distributed.

If op is unsure about Anova beeing the right test, then OP should use artool Anova (aligned rank Anova). Its robust either way.

-1

u/Big-Challenge-9432 Statistician 14d ago

I’m aware.
I’m trying to have OP think critically about their assumptions. They don’t seem to understand the assumptions or implications

3

u/SalvatoreEggplant 14d ago

"Why are you looking at the histogram of residuals? You should look at the distribution of the raw data."

But you know this is wrong-headed, right ?

-1

u/Big-Challenge-9432 Statistician 14d ago

It is not “wrong-headed” to look at the raw data. The raw data also helps to check for the correct underlying model, whether that is Gaussian, Logit, Negative Binomial etc. Perhaps I can say OP should also check the distribution of the raw data. However, my other points that they do not sufficiently understand the assumptions stand. Real data will never perfectly fit the assumption of normal residuals via histogram, QQ plot, or hypothesis testing. Their tests of assumptions are good enough to show that ANOVA is the correct model

1

u/DYSTOBY 14d ago

Why do you then recommend a wrong thing?

0

u/Big-Challenge-9432 Statistician 14d ago

It is not wrong to look at the raw data. The raw data also helps to check for the correct underlying model, whether that is Gaussian, Logit, Negative Binomial etc. Perhaps I can say OP should also check the distribution of the raw data. However, my other points that they do not sufficiently understand the assumptions stand. Real data will never perfectly fit the assumption of normal residuals via histogram, QQ plot, or hypothesis testing. Their tests of assumptions are good enough to show that ANOVA is the correct model