If there are a lot of policies in the policy matrix, we could actually run out of connections. The example I'm playing with now is trying to predict a numeric response over time, and so I wanted to give a policy matrix with 1000 values of time. I can't compile all the JAGS models though because I can't support that many connections.
A call to closeAllConnections() in the lapply call in compileDecisonModel should alleviate this problem.
If there are a lot of policies in the policy matrix, we could actually run out of connections. The example I'm playing with now is trying to predict a numeric response over time, and so I wanted to give a policy matrix with 1000 values of time. I can't compile all the JAGS models though because I can't support that many connections.
A call to
closeAllConnections()
in the lapply call incompileDecisonModel
should alleviate this problem.