Closed jarrod-dalton closed 9 years ago
I'm going to have to think on this one a little bit. cpt
coerces everything to a factor, so if you pass numeric values to cpt
, they won't get mapped in the factorRef
s because they don't appear in network$data
as factors. But, theoretically, they should still pass to JAGS just fine as numerics. This is something I'll have to play with and come up with some options to present.
Upon inspection, I found all kinds of flaws with this. The factorRef
object only incorporated factors in the global data
element, but wouldn't address anything in the node-specific nodeData
element. This has been resolved, streamlined, and incorporates cpt
as well.
I noticed that we haven't tracked the factor levels for objects of class
cpt
withincompileJagsModel()
andcompileDecisionModel()
. For eachcpt
node, we'll need to create a list element incompiledHydeNetworkObject$factorRef
that contains these factor codings.