glm binomial regression. How can I check what output is predicting
Stupid question, but I want to be sure.
glm(outcome ~ cva, family = "binomial", data=df, x=TRUE, y=TRUE)
Predictors Odds p
(Intercept) 0.16 <0.001
cvaTRUE 1.95 0.029
My 'outcome' variable is YES or NO as.factor
How can I be sure this glm is giving the Odds of YES and not NO? ie I want to be confident that this is saying "if cva TRUE then Odds 1.95 for outcome YES.
With a binary response taking the value of either 0 or 1, the model estimates the odds that outcome
is equal to 1. So, if YES is coded as 1 then you can be sure that the odds of 1.95 are for outcome YES.