simr
simr copied to clipboard
glmmTMB support?
Tricky bits probably:
-
simulate
with modified parameter values -
use.u
insimulate
Hi, is there support for glmmTMB and powerSim() and powerCurve() at this point in time? Thanks!
No support yet, but I've had another look and it might not be as hard as I thought. I'm unlikely to find the time for a while though.
simulate.glmmTMB
lives in methods.R
.
object$obj$simulate(par = object$fit$parfull)$yobs
That goes back to TMB
I think, but doSim
should be able to pass modified parameters.
Hi @pitakakariki - wondering if you'd had chance to look at including this yet, or if you know of another method for glmmTMB?
Not much progress on this unfortunately. Simplest way to do it might be to tweak your glmmTMB model by hand (i.e. edit the values in x$fit$parfull
) and write functions to pass to fit
and test
.
ok, thanks @pitakakariki - maybe I'll take a peek at that.
I'd be willing to help push this forward if you like. We really should add newparams
and newdata
to simulate.glmmTMB
...
If newparams
and newdata
are added to simulate.glmmTMB
that's most of the work done I reckon. That might finally encourage me to add the appropriate connectors at this end.
Actually, these are there already! There are some outstanding issues (https://github.com/glmmTMB/glmmTMB/issues/953) but you could give it a spin and see how it goes ...