glmnet: How do I know which factor level of my response is coded as 1 in logistic regression
- 阅读更多 关于 glmnet: How do I know which factor level of my response is coded as 1 in logistic regression
问题 I have a logistic regression model that I made using the glmnet package. My response variable was coded as a factor, the levels of which I will refer to as "a" and "b". The mathematics of logistic regression label one of the two classes as "0" and the other as "1". The feature coefficients of a logistic regression model are either positive, negative, or zero. If a feature "f"'s coefficient is positive, then increasing the value of "f" for a test observation x increases the probability that