Stepwise Regression in Python

后端 未结 7 971
青春惊慌失措
青春惊慌失措 2020-12-24 14:26

How to perform stepwise regression in python? There are methods for OLS in SCIPY but I am not able to do stepwise. Any help in this regard

7条回答
  •  无人及你
    2020-12-24 14:34

    You can make forward-backward selection based on statsmodels.api.OLS model, as shown in this answer.

    However, this answer describes why you should not use stepwise selection for econometric models in the first place.

提交回复
热议问题