writeJagsModel handles dbern, dcat, dnorm, and dpois, which satisfies all of the major model types, but anything else that might get specified in a custom manner won't go through.
I just tried to do an example with a node defined
setNode(net, x2,
nodeType = 'dexp',
lambda = 4)
and it wouldn't work because writeJagsModel doesn't have the facilities to write
x2 ~ dexp(lambda = 4).
This should be a quick fix. I'll toss it in and test it a little before submitting to CRAN. I think the bigger issue we'll hit is it won't know what to do with a model, or with fromData() or fromFormula(), but we can cross that bridge later.
allow using the node types not accounted for.
writeJagsModel
handlesdbern
,dcat
,dnorm
, anddpois
, which satisfies all of the major model types, but anything else that might get specified in a custom manner won't go through.I just tried to do an example with a node defined
and it wouldn't work because
writeJagsModel
doesn't have the facilities to writex2 ~ dexp(lambda = 4)
.This should be a quick fix. I'll toss it in and test it a little before submitting to CRAN. I think the bigger issue we'll hit is it won't know what to do with a model, or with
fromData()
orfromFormula()
, but we can cross that bridge later.