Plotting marginal smooths for a random effects model

94 views
Skip to first unread message

Hans Tierens

unread,
Oct 17, 2017, 3:42:21 PM10/17/17
to brms-users
I am currently fitting a Poisson model with multiple-membership random effects. 
For the continuous covariates, I fit a smoothing spline, s(...). 

I would like to plot the smoothing terms in a similar way as plot.gam() does. 
However, if I apply the marginal_smooths(...) function, I get the following error: "Error in if (any(weights < 0)) { : missing value where TRUE/FALSE needed"
Does anyone know how to fix this and/or circumvent the error? I can't really wrap my mind around what is going wrong here.

Kind regards,

Hans

Paul Buerkner

unread,
Oct 17, 2017, 3:52:43 PM10/17/17
to Hans Tierens, brms-users
This looks like a bug. Can you give me a reproducible example?

--
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/d3265301-e20d-4aef-8c8d-4cbce7779e24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Buerkner

unread,
Oct 17, 2017, 8:16:23 PM10/17/17
to brms-users
Thanks for the reproducible example sent via email. The bug is now fixed in the dev version of brms.
Reply all
Reply to author
Forward
0 new messages