Skip to content
Prev 324449 / 398506 Next

lmer (multinomial response variable ~ fixed + (1|random), family='"multinomial" ???)

Maggie Wisniewska <maggie.wisniewska <at> gmail.com> writes:
OConnell.glmm1<-lmer(DIST~AGE+LOC+MOT+(1|ID),data=OConnell,family=binomial(link
This would probably be better asked on the specialized
r-sig-mixed-models at r-project.org mailing list.

  It looks like you really want to fit an ordinal model
(i.e. your categories are naturally ordered, as opposed to
a case where your responses were unordered, e.g.
"chocolate", "strawberry", "vanilla", "maple walnut").

  The 'ordinal' package will allow you to fit these kinds
of models.


PS (somewhat tangential)

  As far as I know the only mixed model package available for R that can
handle multinomial models in a simple way  is the MCMCglmm package.
Multinomial models are relatively easy to code as variations on binomial
models:

http://en.wikipedia.org/wiki/Generalized_linear_model#Multinomial_regression
http://www.math.ntnu.no/inla/r-inla.org/papers/multinomial-poisson.pdf
(the latter is provided by the INLA web site, another mixed model package)

but this won't help if you just want a quick "black-box" solution.