Debugging logistic regression classification code
I am doing a logistic regression to assess the accuracy of the classification of the variable ‘fasting_status’ (0=non-fasted, 1=fasted) based on three numeric variables (a1c, glu, and uc_ratio).
My model accuracy keeps printing as 0, even though I do not think that is true (see below)- and I’m wondering where (if) I’m going wrong.
I’m pasting my code and data below. Any help is appreciated. Thank you!