##
• Basic statistics » Normality test followed by T or Wilcox test in R *Making a loop and performing appropriate test accordingly*

I have 40 variables for 8 groups and I want

-first to check the normallity of all 40 variables

-sort the columns which violate normality and the ones which do not

-perform t test or wilcox test based on above

-If possible, make horizontal boxplots for all 40 variables, comapring every group to the control group and adding the p value on the plot

I know this is too complicated but I was wondering if it is possible to do that and someone can help me ? Thanks in advance

Answer

You aren't allowed to write in this category