Stepwise logistic regression model selection based on Chi Square Test
aaronxs opened this issue · comments
Aaron Situ commented
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
Aravind Hebbali commented
Aravind Hebbali commented
Need to use car::Anova()
to select variables based on p-values from Wald chi square test.
Aaron Situ commented
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!