Skip to main content
edited title
Link
mpiktas
  • 35.4k
  • 6
  • 89
  • 145

data Data and model blocks in JagsJAGS

Source Link
scottyaz
  • 729
  • 1
  • 5
  • 18

data and model blocks in Jags

I am trying to model a function of observed data in JAGS. For example

   x[i,t]/phi ~ dpois(mu)

where x is observed and phi is a parameter in the model. I can't seem to get this working and am wondering if I may be missing some larger issue in JAGS. I am pretty sure you can't have any transformation of the data in the model statement and need to use a data block but that doesn't seem to be dynamic, thus not allowing for me to fit phi.

Any ideas?