for testing only: use self=TRUE with getParents in setupMargNodes - #1630
for testing only: use self=TRUE with getParents in setupMargNodes#1630paciorek wants to merge 6 commits into
self=TRUE with getParents in setupMargNodes#1630Conversation
…athway (issue 1625).
|
A test in |
|
@perrydv can you look at the change to the test in line 439 of test-setupMargNodes.R in this PR and see what you think about what the correct result is? If we use |
|
@paciorek I'm looking at this. It is admittedly a strange case in that providing only If
If I am following this correctly, in the test in question step 3(c) would apply, and then I am just puzzled about whether this was a mistake when the tests were written, or the interpretation of the confusing part of the documentation is correct, or what. The result of marginalizing with no data or given nodes at the end of a calculation would be trivial. Maybe that's why it was assumed the correct test result would not represent that. But on the other hand, the purpose of this case seems to be to follow the logic even if it is not a very smartly specified problem. |
We are seeing an inconsistency between nimbleModel and nimble in terms of
getParentsreturning some "self" items if they are parents of other input nodes.This checks if using
self=TRUEin withgetParentsinsetupMargNodeschanges any behavior.If not, that suggests we could use
self=TRUEinnimbleModel:::setupMargNodesto get consistent results with nimble.