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 matrix column selection in predict.mclogit if there is only one predictor left. #1

Closed sfahnens closed 5 years ago

sfahnens commented 6 years ago

Without drop=FALSE column selection for a single predictor returns a simple vector, which is unsuitable for the multiplication in the next line.

carljv commented 5 years ago

@melff Would be great to merge this PR. I just got bit by this bug today. Thanks!