I have a variable called experience which was coded as numeric and contains 3 values (1,5,10). I changed the class to factor using df$experience<-factor(df$experience)
and it changed to factor.
Next I run a GLM model as
reg<-glm(cbind(win,loss)~experience, data=df, family=binomial)
but when I get summary(reg)
, only one level of the experience variable shows in the table (i.e. experience10
).
Shouldn't there also be another categorical variable, experience5
?