Logistic regression: how to try every combination of predictors in R?
问题 This is a duplicate of https://stats.stackexchange.com/questions/293988/logistic-regression-how-to-try-every-combination-of-predictors. I want to perform a logistic regression: I have 1 dependent variable and ~10 predictors. I want to perform an exhaustive search trying every combination, such as changing order and adding/deleting predictors, etc. For example: y ~ x1 + x2 + x3 + x4 + x5 y ~ x2 + x1 + x3 + x4 + x5 y ~ x1 + x2 + x3 y ~ x5 + x1 + x2 + x3 + x4 y ~ x4 + x2 ...and so on.