A call to run.jags() is producing the following error message:
Error in paste(value[[i]], collapse = ", ") :
result would exceed 2^31-1 bytes
I tried passing the argument sample = 0 and the error persisted, so it is happening during model creation. The model is large and has some 3-dimensional arrays. I tried removing arrays from the list of monitored parameters, but the error persisted.
Does anyone have an idea of what is causing this error or possible options to avoid it?
Thank you,
Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Apologies for the delay in replying. The error is happening while translating your data from the R representation to a character representation (as required to be read by JAGS) - I have never seen this error before but I guess the 3 dimensional arrays in your data are quite large and the error is coming from that.
In order to get around the problem you could try to provide the data to the run.jags function as a character string rather than a list - see ?dump for a way to generate character representations of R objects. The way in which runjags creates these character strings is not very efficient so could (and will!) be improved in a future version.
Cheers,
Matt
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
A call to run.jags() is producing the following error message:
Error in paste(value[[i]], collapse = ", ") :
result would exceed 2^31-1 bytes
I tried passing the argument sample = 0 and the error persisted, so it is happening during model creation. The model is large and has some 3-dimensional arrays. I tried removing arrays from the list of monitored parameters, but the error persisted.
Does anyone have an idea of what is causing this error or possible options to avoid it?
Thank you,
Jeff
Hi Jeff
Apologies for the delay in replying. The error is happening while translating your data from the R representation to a character representation (as required to be read by JAGS) - I have never seen this error before but I guess the 3 dimensional arrays in your data are quite large and the error is coming from that.
In order to get around the problem you could try to provide the data to the run.jags function as a character string rather than a list - see ?dump for a way to generate character representations of R objects. The way in which runjags creates these character strings is not very efficient so could (and will!) be improved in a future version.
Cheers,
Matt