-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fatal error when using dsm_var_prop
#46
Comments
Hello, @crentmeister, @StewartResearch and I are working to apply your methods to our dataset (thank you for the very nice documentation and package by the way), and we have been running into that same issue. We are interested in using the variance propagation method so we don't have to assume independence between the distance function estimation and the dsm, so this fix is important for us. I have made an attempt to fix that bug. I haven't touched the core of the code, I just tried to make the objects conform to the expected format from my limited understanding of the code, making things into lists or not depending. It seems to work (using the same MRE above) but it feels like a hack. Below is the output I get:
It doesn't seem to match the output in your Supplementary Materials, but I think the model is different (simpler?) in that MRE (but I cant be sure the code is the same as the SM seem to use deprecated versions of those functions). FWIW, the tests run fine on the PR branch:
|
Thanks @VLucet, @crentmeister and @StewartResearch - very helpful. I took an initial look and concluded that it's going to take quite a bit of digging to get up to speed on the objects that are passed in to this function -- I'd like to understand how this issue arose. I'm away for a week but will have a look when I get back. In the meantime, I assume you folks are fine using your forked version, and are making further progress with your work. |
Error arises on line 11 of
varprop_check
dsm_var_prop
produces a reasonable standard error for the Gomex dolphins, but the last line ofdsm_var_prop
is to return a result including a call tovarprop_check
that generates the error.Attempt to manufacture MRE from the Gomex data. Requires artificially creating a Beaufort value at the segment level (requirement of using
dsm_var_prop
for variance estimation).I don't know the purpose of
varprop_check
so I don't know if simply eliminating the call to the function in the last line ofdsm_var_prop
is a viable solution to the problem.Other inconsistencies: object names in the list returned by
dsm_var_prop
do not correspond with object names used insummary.dsm_varprop
; e.g. first element of list ispred.var
, but summary thinks there is an elementvar
The text was updated successfully, but these errors were encountered: