Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model

531 views
Skip to first unread message

Edward Patzelt

unread,
Jun 2, 2018, 12:35:42 PM6/2/18
to brms-users
Hi brms-users,

We are trying to specify a relatively simple probit model:

fit <- brm(choice ~ 0 + cond + cond:V + (0 + cond + cond:V|subject),data=dat,family=bernoulli("probit"))

However, we get the following error:

"Rejecting initial value:
  Log probability evaluates to log(0), i.e. negative infinity.
  Stan can't start sampling from this initial value.

Initialization between (-2, 2) failed after 100 attempts. 
 Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model.
[1] "Error in sampler$call_sampler(args_list[[i]]) : Initialization failed."


In looking at the STAN users group it appears that it is possible the data is formatted incorrectly.

Thanks!

Edward
data.csv

Paul Buerkner

unread,
Jun 2, 2018, 12:36:51 PM6/2/18
to brms-users
The brms forums have moved to http://discourse.mc-stan.org/. Please ask your question there.
Reply all
Reply to author
Forward
0 new messages