Ordinal regression models with random effects

320 views
Skip to first unread message

Michael Ratajczak

unread,
Apr 27, 2017, 2:04:13 PM4/27/17
to Stan users mailing list
Hi,

Is there any way to include random effects in ordinal regression models fitted using rstanarm? stan_polr doesn't seem to have this capability -- is this something that may be added in the future?

Thanks,
Michael

Bob Carpenter

unread,
Apr 28, 2017, 1:20:02 PM4/28/17
to stan-...@googlegroups.com
I'm just calling out RStanArm in the title. I don't know
all the models it can fit, but Ben and Jonah will.

- Bob
> --
> You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
> To post to this group, send email to stan-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Paul Buerkner

unread,
Apr 30, 2017, 1:49:45 PM4/30/17
to Stan users mailing list
As far as I know, rstanarm does currently not support random effects in ordinal models. but the brms package, which is also based on Stan, offers this feature.

Andrew Gelman

unread,
Apr 30, 2017, 4:03:54 PM4/30/17
to stan-...@googlegroups.com
I thought rstanarm did allow ordered logit with varying intercepts and slopes using lmer4-style notation.  But maybe Ben and Jonah haven't put this in yet, I'm not sure.
A

Michael Ratajczak

unread,
May 1, 2017, 8:42:46 AM5/1/17
to Stan users mailing list, gel...@stat.columbia.edu
Hi Paul and Andrew,

Thank you for your replies.

Paul: I am aware of the brms package, but I prefer rstanarm because it is faster. Also, I have many predictors and I would like to fit the model using the R-squared prior.

Andrew: I think stan_polr is the only modelling function in rstanarm that models an ordinal response; when I try to vary the intercepts for each participant using lme4-style notation, the following error message appears:

Error: Constant variable(s) found: 1 | Subject

Michael

Michael Ratajczak

unread,
Jun 2, 2017, 6:29:02 PM6/2/17
to Stan users mailing list
I am wondering, are there plans for incorporating random effects in the stan_polr function in the future? Or for creating an additional function allowing for random effects in ordinal regression models?

Andrew Gelman

unread,
Jun 2, 2017, 6:51:45 PM6/2/17
to stan-...@googlegroups.com, Ben Goodrich, Jonah Sol Gabry
There is definitely a plan to do this.  It might be there already, actually.
A
Reply all
Reply to author
Forward
0 new messages