Closed jarrod-dalton closed 9 years ago
carNet2 <- compileJagsModel(carNet, data = list(cyl = "6") )
This syntax works for me. The posterior distribution shows the value of 2
in place of 6
, which is the appropriate numeric level. Using bindPosterior
gives the option to relabel the factor to "6"
.
Are you getting an error with this syntax?
It seems that we may be able to circumvent the need to specify numeric codes in place of factor levels in the data argument to
compileJagsModel()
.(Setting up the model:)
Currently, if we want to observe
cyl="6"
, we need to say:It doesn't seem terribly difficult to make it so the syntax can be: