Closed jarrod-dalton closed 8 years ago
I"m pretty sure that was a design decision at the time, and is easily overcome by adding a constant column to the policy matrix. But I can see why you'd want this, and it would be the only way to observe a node if you wanted to use the default policy matrix.
Question: should we allow decision nodes to be observed? If yes, should we disallow a node to appear in both policyMatrix
and data
?
Yes we should allow decision nodes to be observed. Disallowing values in both the policy matrix and data list seems reasonable although I can't fully wrap my head around the ramifications of that vs. simply overriding the values in the policy matrix. This is not unrelated to the consideration of allowing deterministically defined decision nodes.
This is included in version 0.10.0
Right now,
compileDecisionModel()
forbids adding adata
argument as is done incompileJagsModel()
when nodes are observed.