melff / mclogit

mclogit: Multinomial Logit Models, with or without Random Effects or Overdispersion
http://melff.github.io/mclogit/
22 stars 4 forks source link

fix mblogit for responses with only two levels #3

Closed sfahnens closed 4 years ago

sfahnens commented 4 years ago

drop=FALSE is needed in case the response factor has only two levels or the response matrix has only two columns.

Otherwise D will decay to a numeric vector, which leads to errors in subsequent code.

melff commented 4 years ago

Thanks! Merged into master ...