How to do stepwise regression in R?

You don’t.

Seriously. You shouldn’t do it. It’s a popular method in social science research, but most statisticians will advise you against it. Selecting or removing predictors based on significance will lead to inflated Type 1 errors, introduces undesired bias and will not provide you with informative insights. Others have written more elaborately about this, so have a look at some of these resources:

The comments also have some additional reading material to further convince you: Do not use stepwise regression.

2 Replies to “How to do stepwise regression in R?”

Leave a Reply

Your email address will not be published. Required fields are marked *