Stepwise regression using p-values to drop variables with nonsignificant p-values

后端 未结 6 987
感动是毒
感动是毒 2020-11-29 16:46

I want to perform a stepwise linear Regression using p-values as a selection criterion, e.g.: at each step dropping variables that have the

6条回答
  •  情深已故
    2020-11-29 17:41

    Package rms: Regression Modeling Strategies has fastbw() that does exactly what you need. There is even a parameter to flip from AIC to p-value based elimination.

提交回复
热议问题