nutterb / HydeNet

Hybrid Decision Networks in R
Other
23 stars 3 forks source link

Mapping needed between factor labels and levels. #15

Closed nutterb closed 9 years ago

nutterb commented 9 years ago

When passing observed data, jags wants the level number, which makes it difficult to know when exactly needs to be passed. Some kind of mapping schemed needs to be included in compileJagsModel to navigate the difference. Another function will be needed for the output of coda.samples to return it to the labels.

nutterb commented 9 years ago

compileJagsModel now contains an element with the mapping of factors. coda.samples returns a list of matrices, and converting a column to matrices will wreak all sorts of havoc, so I'm putting that part of this issue aside for now.