audrey-b / sims

An R package to simulate data from JAGS or R Code
https://poissonconsulting.github.io/sims/
Other
1 stars 2 forks source link

What if the model already has a data block? #2

Closed joethorley closed 5 years ago

joethorley commented 5 years ago

presumably this is fine as long as the term does not occur in the data block as well?

joethorley commented 5 years ago

I'm thinking it's simplest if we require that a data block does not already exist (a future extension could extend to allow a data block)

Then all we have to do is renamed model { to data { and add a dummy model block ie

model {
  dummy <- 0
}

we would have to ensure that they are not monitoring dummy

joethorley commented 5 years ago

This question will become redundant if we are able to replace the priors in the model block with their values

joethorley commented 5 years ago

simulate function requires that code not in a block