My study design consists of two factors (one with 2 levels, the other with 6) and a continuous response variable. In order to analyze the influence of both factors on the explanatory variable I built a linear model in the following format:
modela<-lm(response~factor1*factor2, data=dataset)
I was going to run a 2-way ANOVA in order to test the significance of each of the explanatory variables however, upon evaluating the assumptions of this test, I found that the assumption of normality of residuals was violated (shown via a significant p-value from a Shapiro-Wilk test). All other assumptions (independent observations, no significant outliers, homogeneity of variances) were met.
Given this assumption violation is there a nonparametric alternative test that would be more appropriate to analyze my data. I have also read that transforming the data might help but I'm not sure a) if this would be appropriate and b) which transformations I should use.
Any help anyone can provide would be greatly appreciated.
Edit 1 - Here is the Q-Q plot for my model:
Edit 2:
This is the output I got for the aligned ranks transformation ANOVA.
Call:
art(formula = Duration.egg ~ Temperature + Species + Temperature:Species,
data = egg.na.1)
Column sums of aligned responses (should all be ~0):
Temperature Species Temperature:Species
0 0 0
F values of ANOVAs on aligned responses not of interest (should all be ~0):
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.0000 0.0000 0.0000 0.4130 0.1609 2.2636
Warning message:
In summary.art(x) :
F values of ANOVAs on aligned responses not of interest are not all ~0. ART may not be appropriate.
```