nimble-dev / nimble

The base NIMBLE package for R
http://R-nimble.org
BSD 3-Clause "New" or "Revised" License
158 stars 24 forks source link

Fix setData #1327

Closed paciorek closed 1 year ago

paciorek commented 1 year ago

This fixes issues #1324 and #1326 by:

Note that I have not yet added various tests, in particular the CR-type example where there are undefined nodes in a variable, such as y[i, 3:6] defined but y[i, 1:2] undefined. I will also review the changes again carefully.

paciorek commented 1 year ago

Per discussion in NCT issue 457, this approach won't work because it prevents use of setInits to generally change values. See next PR that avoids the RHSonly as data issue and simply addresses determ nodes as data.