Open
Conversation
When multiple models are being used, the association of the LOQ to the right model was not done properly. This was corrected
Testing if MC approaches would work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi Andrew,
I was trying using PopED to evaluate the design of an experiment with three state variables. As each of those variables have a different LOQ, I wanted to use the variable loq, but I was getting the following message error.
Error in mf_all_loq(t(model_switch[i, 1:ni[i, drop = F], drop = F]), t(xt[i, :
loq or uloq not specified properly
I had a look at the code, and I noticed the following code in the function mf_all_loq:
...
if (length(loq) == n_mod) {
...
where n_mod is a vector with the index of the model. As a consequence, the if statement only evaluate the first index of n_mod (i.e. that length(loq) == n_mod it is equivalent of length(loq) == n_mod[1]), but reading the code, I would expect that the desire behaviour is to check of the number of defined loq correspond to the number of defined models, therefore, I would expect the code to be:
...
if (length(loq) == length(n_mod)) {
...
Same comment for uloq.
However, I did not test the code and I do not know if there are other parts of the package that should be adjusted for this.
Regdards
Mohammed