0

I'm basically trying to do what is described in this question R Loop for Variable Names to run linear regression model (i.e. swapping out one independent variable while all others stay constant)

except that I'd like to run a classification model as opposed to a linear regression. Any classification model will do, the simpler the better. Can anyone provide a basic guideline of what this kind of code would look like?

2
  • Asking for recommendations on methods is not really on topic. Perhaps asking first on a stats forum? Commented Apr 23, 2019 at 7:25
  • I'm sure there is, however the formulation of your question is to broad for this site, why not try to add what you tried and the problem you faced so we can help you, I suggest you try to create a reproducible example of the model you want to apply with one variable, and we'll see how we can generalise form there. Commented Apr 23, 2019 at 9:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.