I have ~47k data points, 200 levels in G1, 20 levels in G2 and 140 levels in G3.
Has the model been coded correctly? Can the model coinvergence and speed be improved with better specification of priors or initial values? If so, how can I specify priors and initial values for each of the random effects separately?
Any help is greatly appreciated.
Thanks,
Meghna
Gradient evaluation took 0.041 seconds 1000 transitions using 10 leapfrog steps per transition would take 410 seconds. Adjust your expectations accordingly!
Iteration: 1 / 2000 [ 0%] (Warmup)
Y = a * X ^ b , where Y is drawn from a negative binomial distribution.
In addition, a[G3] and b[G3] are modeled as linear functions of a group-level predictor Z for G3,
i.e. a[j] = g0 + g1 * Z[j] and b[j] = h0 + h1 * Z[j].
I already tried exp(a), but all model parameters and CIs are estimated as 0 or 1, even after running 1000+ iterations. I'm not sure what goes wrong. Perhaps I need to specify different priors from what is used now?
I wrote the model as
brm(Y ~ exp(a)*X^b, a ~ 1+Z+(1|G1)+(1|G2)+
(1|G3), b ~ 1+Z+(1|G1), nl=T)...)
Both a and b are given N(0,1) priors. Any obvious errors? Should the prior and group-level formulation be for exp(a)?
Thanks,
Meghna
--
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/21869889-32be-4c3b-ae5e-78d8db92da2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I did remove all priors on sd and bounds on a. The issue persists. Should I try giving initial values?
--
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/d9efa589-2d67-4bfb-a956-bbdd19345aec%40googlegroups.com.