I would be grateful if you could help me. I've imported a dataframe from Excel (9 columns, whose the first one contains the treatments of an experiment). I'd like to perform an ANOVA analysis (followed by a Tukey post hoc) of each variable (i.e. columns 2 to 9) by the first column of the treatmnents. I think I need a for loop for this instead of typing and carrying out 8 separeted tests (one for each combination "column-i with column-treatment").
I whish someone could give me tips to write the code.
Thanks in advance!