Error: Argument 'prior' must be a 'brmsprior' object.

429 views
Skip to first unread message

David Sidhu

unread,
Apr 12, 2018, 4:16:04 PM4/12/18
to brms-users
I've defined the following prior:

prior<-c(set_prior("normal(0,35)",class = "b", coef = "Congruent1"), lb = -100, ub = 100)

But when trying to run this model with it:

m1<-brm(CorrectedRt~Congruent+(1|Subject)+(1|Word), data = scta, family="gaussian", prior = prior, warmup = 2000, iter = 4000, chains = 20, save_all_pars = TRUE)

I get the following error: 

Error: Argument 'prior' must be a 'brmsprior' object.

Any advice on what to try to avoid this?

David Sidhu

unread,
Apr 12, 2018, 4:22:06 PM4/12/18
to brms-users
As a follow-up, I'm also curious if there is a list of the different distributions that are possible to fit as priors in brms?

Paul Buerkner

unread,
Apr 12, 2018, 4:35:11 PM4/12/18
to David Sidhu, brms-users
Check your brackets. You can use all continuous distributions given in the Stan manual.

--
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/bed01931-bd14-4381-aefb-e4d680d6c83b%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages