Closed jarrod-dalton closed 9 years ago
Just to address the simplest issue, which version of the package are you using?
packageVersion('HydeNet')
If you are running anything less than 0.7.2, reinstall the package with
devtools::install_github("nutterb/HydeNet", ref="development")
Under this version, using data=list(wells=7, treat='No')
works, but using treat=1
returns NA. I'll work that out.
I was running 0.7.1. I reinstalled and got the same problem though.
This will be fixed in 0.7.3.
I'm trying to set observed values for factor nodes in the PE network, and compileJagsModel() seems to be setting them to NA. I tried using numeric (JAGS-esqe) values for the factor levels (1 and 2), and it sets the node to NA. When I try using R-esqe factor labels ("No" and "Yes"), I get an error.
library(HydeNet) options(Hyde_maxDigits=2) data(PE, package='HydeNet') autoNet <- HydeNetwork(~ wells
Initializing model
$treat [1] NA