ordinal regression with random effects

50 views
Skip to first unread message

Jannik Vindeløv

unread,
Nov 14, 2017, 7:09:54 AM11/14/17
to brms-users
Dear Group

I have strains (B) that are scored according to the inhibition (I) by a sample (S) on a four point ordinal scale (NO, LOW, MEDIUM, HIGH).

Individual strains (B) can be used in combination with other strains, and a specific combination of strains constitutes a product (F).

Furthermore, the samples (S) originate from different customers (C).

I have a large number of strains, products and customers and consider them to originate from a population of strain, products and customers.



To simplify, I start with a fairly simple hierarchical model (ordinal regression with customers(C) and strains (B) as random effects) on which I will later expand (multi membership hierarchical ordinal regression... ?):

model <- brm(formula = I ~ (1|C) + (1|B), data = D, family = "cumulative")

I would like to infer which strains (B) are the most inhibited, but I fail to understand the scale of the data returned by ranef(model)$B ?

  • How should I interpret the numbers returned by ranef?
  • How could I predict the ranef numbers on the ordinal scale?
  • What is the implicit distribution of the random effects?

Thanks

Jannik







Paul Buerkner

unread,
Nov 14, 2017, 7:52:06 PM11/14/17
to Jannik Vindeløv, brms-users
1. The higher the ranefs, the higher the probabilities for higher categories.

You can think of the ranefs as being on the logit scale, although the situation in ordinal models in a bit more complicate than that.

2. You could use for instance

fitted(model, newdata = data.frame(B = unique(D$B)), re_formula = ~ (1|B))

to only include the random effects of B in the predictions (and not those of C).

3. brms assumes a normal distribution (normal prior) for the random effects, just as most other multilevel packages do.

Best,
Paul

--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+unsubscribe@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/2c724db3-7e45-4d9c-9559-b05e350eb72e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jannik Vindeløv

unread,
Nov 20, 2017, 10:08:57 AM11/20/17
to brms-users
Thanks Paul,

Just what I needed.

/Jannik
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages