Skip to content
Prev 4226 / 20628 Next

Binary response ordering

On Wed, Aug 4, 2010 at 9:30 AM, John Haart <another83 at me.com> wrote:
I just meant that when you create a factor from a numeric variable you
can either accept the default ordering of the factor levels, which is
lexicographic (if all the numeric values are small integers this
corresponds to numeric ordering but as soon as you get numbers like 10
you have to be careful because 10 sorts before 2 in lexicographic
ordering) or you can impose an ordering.

A glm or glmer model fit for family = binomial with the response a
factor with two levels uses the 2nd level as "success" and the first
level as "failure".
I'll leave it to others to comment on p-values, AIC, etc.