Fit models with PIRLS and refit without PIRLS yields similar estimates to "slow" model but is faster #736
MaximilianNuber
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all,
I am trying to fit many GLMM in parallel, but still needed some speed-up, so I decided to use PIRLS in MixedModels.jl.
However, I discovered that fitting a model with PIRLS (fast = true) and then refitting the model yields parameters which are not quite the same, but much closer to the estimates of the non-PIRLS optimisation. And fitting first with PIRLS, then without, took less time than only fitting without PIRLS.
I wondered, if the estimates from the run with PIRLS remain in the model and are a good starting point for the estimation with NLopt?
Is this comparable to
init_from_lmm
?So my question is, if using this would be considered good practice.
Unfortunately, I cannot share my own data, so I worked the following MWE.
The time difference between fitting the full model as compared to fast-fitting, then slow-fitting is more pronounced in my own data.
I would just like to know if I can reasonably take advantage of this?
Thanks for any help.
Output:
Refit with "fast = false":
Output:
Now the full model for comparison:
Output:
Here my loaded packages:
I am on Julia 1.8.1 on an Ubuntu server.
Beta Was this translation helpful? Give feedback.
All reactions