Error looping the ANOVA test in R in dataframe
I have the dataframe: sub3 <- df1[, c(‘Attrition’, "Age", "DistanceFromHome", "MonthlyIncome", "NumCompaniesWorked", "PercentSalaryHike", "TotalWorkingYears", "TrainingTimesLastYear", "YearsAtCompany", "YearsSinceLastPromotion", "YearsWithCurrManager")] sub3 Where Attrition is the response variable. I am trying to run a loop of ANOVA test in R to validate the relation between my response variable and the categorical ones, my code is: df_num <- function(x)… Read More Error looping the ANOVA test in R in dataframe