rsquaredacademy / blorr

Tools for developing binary logistic regression models

Home Page:https://blorr.rsquaredacademy.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stepwise logistic regression model selection based on Chi Square Test

aaronxs opened this issue · comments

Hi,

I was wondering would it be possible to create a function that does model selection based on p values (like ols_step_both_p from the olsrr package). Specifically p values from ANOVA/Chi Square Test similar to the STEPWISE procedure in SAS (https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_logistic_sect029.htm)

Thank you!
Aaron

Need to use car::Anova() to select variables based on p-values from Wald chi square test.

It works perfectly! Thank you so much!!

Another question: is there any ways you can make it so that the final model is saved in Value? Thanks!