Helper function to join two BUGS models
joinModels(model1, model2)
model1
first model
model2
second model
joined model