-
Notifications
You must be signed in to change notification settings - Fork 9
Error for ds models with covariates and adjustments #156
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
Comments
I remember a difference of opinion about this at our DistDev meeting. Len labelled it as a bug on 04Apr23, I agree with that assessment. |
I think that this is trying to emulate the behaviour of DistWin, where no adjustments are fitted by default in MCDS analyses, but you can manually fit some. I am fine with that as a strategy, so long as it's documented. This would mean that if there's a covariate in the detection function and you don't set nadj or order then you get 0 adjustments; if you specify nadj or order then you get the specified adjustments. I'm also happy with other suggested solutions. Main thing is it's documented clearly in the online help. I think the error messages are code bugs, aren't they? |
Right; documentation is inconsistent with code behaviour. Happy for documentation to reflect how code performs. Understand the bug label comes from
no idea what that means nor how it was triggered. Keep the bug label for that. |
Tasks here are to: (1) check the error message that @erex showed in the example above; (2) check that one can ask for adjustment terms using |
Regarding behaviours when there are covariates in the model in relation to adjustment terms.
Regarding behaviours when there are covariates in the model in relation to adjustment terms.
If user attempts to fit a model with covariates and adjustments specified, this message is returned (using amakihi)
This is the expected behaviour.
However, if the number of adjustment terms is specified, a model with both covariates and adjustment terms it fitted:
This is unexpected (and undocumented) behaviour. Plot below shows PDF for MAS=c(60, 120); note deformed shape resulting from inclusing of an adjustment term as well. Do we want users to be able to fit such models or not?
The text was updated successfully, but these errors were encountered: