Skip to main content
added 46 characters in body
Source Link
Jojanzing
  • 113
  • 1
  • 5

I am trying to determine which of several independent variables {A,B,C} best predicts a subject's response R, which can be one of 3 choices, {1high,2 medium,3 low}.

As the dependent variable is multinomial i.e. not binomial, a binomial logistic regression is not suitable. However, using the lme4 package to fit a glm with family = 'binomial' to the data runs without error or warning, and correctly identifies that independent variable B is the best predictor.

Is this a lucky coincidence, or is the call to glm() automatically fitting multiple binomial regressions to the data (one for each binary combination), or is it something else entirely? Any comments are welcome.

I am trying to determine which of several independent variables {A,B,C} best predicts a subject's response {1,2,3}.

As the dependent variable is multinomial i.e. not binomial, a binomial logistic regression is not suitable. However, using the lme4 package to fit a glm with family = 'binomial' to the data runs without error or warning, and correctly identifies that independent variable B is the best predictor.

Is this a lucky coincidence, or is the call to glm() automatically fitting multiple binomial regressions to the data (one for each binary combination), or is it something else entirely? Any comments are welcome.

I am trying to determine which of several independent variables {A,B,C} best predicts a subject's response R, which can be one of 3 choices, {high, medium, low}.

As the dependent variable is multinomial i.e. not binomial, a binomial logistic regression is not suitable. However, using the lme4 package to fit a glm with family = 'binomial' to the data runs without error or warning, and correctly identifies that independent variable B is the best predictor.

Is this a lucky coincidence, or is the call to glm() automatically fitting multiple binomial regressions to the data (one for each binary combination), or is it something else entirely? Any comments are welcome.

Source Link
Jojanzing
  • 113
  • 1
  • 5

R - (why) does fitting a binomial glm to a 3-level factor work?

I am trying to determine which of several independent variables {A,B,C} best predicts a subject's response {1,2,3}.

As the dependent variable is multinomial i.e. not binomial, a binomial logistic regression is not suitable. However, using the lme4 package to fit a glm with family = 'binomial' to the data runs without error or warning, and correctly identifies that independent variable B is the best predictor.

Is this a lucky coincidence, or is the call to glm() automatically fitting multiple binomial regressions to the data (one for each binary combination), or is it something else entirely? Any comments are welcome.