You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the great packages (both broom.mixed and glmmTMB)!
I've been running into problems when fixing some of the parameter values in glmmTMB. While using the map argument in glmmTMB appears to fix most of my problems, I'm still stuck with broom.mixed. In particular, I'm running into problems when trying to get the confidence intervals when I fix one of the parameters associated with the random effects. Here is a set of examples, starting with two models that work.
M1: Model where we estimate everything works well. There are convergence problems and NAs, but broom.mixed::tidy returns a table.
Error in bind_cols():
! Can't recycle ..1 (size 3) to match ..2 (size 2).
Run rlang::last_trace() to see where the error occurred.
Warning messages:
1: In sqrt(diag(vv)) : NaNs produced
2: In sqrt(diag(object$cov.fixed)) : NaNs produced
3: In sqrt(diag(vv)) : NaNs produced
4: In sqrt(diag(object$cov.fixed)) : NaNs produced
Hopefully, I'm not missing something obvious.
Thanks!
The text was updated successfully, but these errors were encountered:
I doubt you're missing anything obvious. Getting all the details of mapped parameters right is tedious ... I definitely appreciate the example and will take a look.
Hmm. This seems to work now, I can't tell whether it's due to updates in glmmTMB or broom.mixed. Not excited about doing the archaeology to see where it changed; can you check and see whether it works for you with up-to-date versions of both packages?
Hi Ben,
Thank you for the great packages (both
broom.mixed
andglmmTMB
)!I've been running into problems when fixing some of the parameter values in
glmmTMB
. While using themap
argument inglmmTMB
appears to fix most of my problems, I'm still stuck withbroom.mixed
. In particular, I'm running into problems when trying to get the confidence intervals when I fix one of the parameters associated with the random effects. Here is a set of examples, starting with two models that work.M1: Model where we estimate everything works well. There are convergence problems and NAs, but
broom.mixed::tidy
returns a table.M2: model where we fix the intercept value works well.
M3: Model where we fix the correlation between random effects does not work with
broom.mixed::tidy
.This returns:
Error in
bind_cols()
:! Can't recycle
..1
(size 3) to match..2
(size 2).Run
rlang::last_trace()
to see where the error occurred.M4: model where the sd of the random effect associated with the intercept is fixed also does not work.
In this case again, broom.mixed returns:
Error in
bind_cols()
:! Can't recycle
..1
(size 3) to match..2
(size 2).Run
rlang::last_trace()
to see where the error occurred.Warning messages:
1: In sqrt(diag(vv)) : NaNs produced
2: In sqrt(diag(object$cov.fixed)) : NaNs produced
3: In sqrt(diag(vv)) : NaNs produced
4: In sqrt(diag(object$cov.fixed)) : NaNs produced
Hopefully, I'm not missing something obvious.
Thanks!
The text was updated successfully, but these errors were encountered: