New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
random effects in dispformula #997
base: master
Are you sure you want to change the base?
Conversation
working on this now ... |
I'm not sure how to solve this problem. The point of some tests is to test back compatibility ('test-sparseX.R:22:5', 'test-methods.R:161:5'), but just reading in the oldfit gives an error.
|
If the internal structure of |
In
|
That seems right ... ? |
This version after the push still gives the error
If I do
and then go line by line in
I wonder why it expected |
Using |
This is getting closer to complete, but I need help figuring out the last 3 failing tests.
|
I'm having a hard time with this one too. When I run it with the current devel version I get the table to be
(i.e. the number of rows is 34, not 41, and the test fails anyway). Comparing the old (current master branch) and new ( In this case the old profile is clearly messed up by not having the dispersion parameter corrected to the new scale (i.e. when we changed the definition of dispersion for Gaussian models). I think that some combination of (1) versions of TMB? and (2) scaling of dispersion may account for this difference (i.e., rescaling the dispersion by 2 will change the profile calculation slightly). To be honest, this isn't a great test anyway and I would be fine with updating it to match the current version. (Also wondering why we didn't catch this sooner ... maybe we don't run with
We've hit stuff like this before. TMB is fussy about attributes, and I fixed a similar problem recently in 726a705. Not sure how this one slipped by
Hmm. The new version (first line) is a singular fit for the nugget effect ("Subject (Intercept)") where it was small but non-singular before. I'm out of time for right now, I might try some |
I think problem number 3 dates back to the Gaussian dispersion scale change and wasn't caught before now because we didn't update stored fits. |
example 3 is definitely an unstable fit, and the test definitely broke when we started changing the Gaussian dispersion scale (we should make sure to highlight such possible changes in the NEWS for the Gaussian-dispersion change ...). I think this basically means that both of the remaining test failures are false positives, we just have to decide what to do about them ... |
This isn't quite ready to merge, but I wanted some feedback. The code compiles, but vignettes and tests fail. I think part of the problem comes from the files saved in
file_ok <- gt_load("test_data/models.rda", update_gauss_disp = TRUE)
. How are these updated and should that happen in the Makefile?Here are a list of potential issues
glmmTMB.R
, line 1169-1174 does something toziformula
. Not sure if it should be done todispformula
.disp
treated asother
inconfint.glmmTMB()
?ziPredictCode
.emmeans
.Some changes were to make our handling of "zi" and "disp" more consistent because some objects had "d" in the name instead of "disp".
etad -> etadisp
Zd -> Zdisp
Xd -> Xdisp
XdS -> XdispS
doffset -> dispoffset
sparseXd -> sparseXdisp