I tested it again using a model that I develop atm that has a integer data variable y_n. I can’t see an error message or warning in the output. It has non-zero decimal components.
data {
//...
array[N] int y_n;
//...
}
stan_data$y_n = stan_data$y_n+.000001
Running MCMC with 4 parallel chains...
Chain 1 Iteration: 1 / 1500 [ 0%] (Warmup)
Chain 1 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 1 Exception: gamma_lpdf: Random variable[14] is inf, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 1 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 1 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 1
Chain 1 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 1 Exception: gamma_lpdf: Random variable[14] is inf, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 1 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 1 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 1
Chain 1 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 1 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 1 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 1 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 1
Chain 1 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 1 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 1 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 1 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 1
Chain 2 Iteration: 1 / 1500 [ 0%] (Warmup)
Chain 2 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 2 Exception: gamma_lpdf: Random variable[14] is inf, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 2 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 2 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 2
Chain 2 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 2 Exception: gamma_lpdf: Random variable[14] is inf, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 2 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 2 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 2
Chain 2 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 2 Exception: gamma_lpdf: Random variable[1] is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 2 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 2 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 2
Chain 2 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 2 Exception: gamma_lpdf: Random variable[14] is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 44, column 2 to column 29)
Chain 2 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 2 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 2
Chain 3 Iteration: 1 / 1500 [ 0%] (Warmup)
Chain 3 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 3 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 3 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 3 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 3
Chain 3 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 3 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 3 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 3 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 3
Chain 3 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 3 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 3 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 3 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 3
Chain 3 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 3 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 3 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 3 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 3
Chain 4 Iteration: 1 / 1500 [ 0%] (Warmup)
Chain 4 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 4 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 4 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 4 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 4
Chain 4 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 4 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 4 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 4 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 4
Chain 4 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 4 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 4 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 4 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 4
Chain 4 Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:
Chain 4 Exception: gamma_lpdf: Random variable is 0, but must be positive finite! (in 'C:/Users/mail/AppData/Local/Temp/RtmpIZeEiW/model-7f9c78bd7865.stan', line 43, column 2 to column 25)
Chain 4 If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,
Chain 4 but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.
Chain 4
Chain 1 Iteration: 100 / 1500 [ 6%] (Warmup)
Chain 3 Iteration: 100 / 1500 [ 6%] (Warmup)
Chain 2 Iteration: 100 / 1500 [ 6%] (Warmup)
Chain 4 Iteration: 100 / 1500 [ 6%] (Warmup)
Chain 1 Iteration: 200 / 1500 [ 13%] (Warmup)
Chain 3 Iteration: 200 / 1500 [ 13%] (Warmup)
Chain 2 Iteration: 200 / 1500 [ 13%] (Warmup)
Chain 4 Iteration: 200 / 1500 [ 13%] (Warmup)
Chain 1 Iteration: 300 / 1500 [ 20%] (Warmup)
Chain 3 Iteration: 300 / 1500 [ 20%] (Warmup)
Chain 2 Iteration: 300 / 1500 [ 20%] (Warmup)
Chain 4 Iteration: 300 / 1500 [ 20%] (Warmup)
Chain 1 Iteration: 400 / 1500 [ 26%] (Warmup)
Chain 3 Iteration: 400 / 1500 [ 26%] (Warmup)
Chain 4 Iteration: 400 / 1500 [ 26%] (Warmup)
Chain 2 Iteration: 400 / 1500 [ 26%] (Warmup)
Chain 1 Iteration: 500 / 1500 [ 33%] (Warmup)
Chain 3 Iteration: 500 / 1500 [ 33%] (Warmup)
Chain 4 Iteration: 500 / 1500 [ 33%] (Warmup)
Chain 2 Iteration: 500 / 1500 [ 33%] (Warmup)
Chain 1 Iteration: 600 / 1500 [ 40%] (Warmup)
Chain 3 Iteration: 600 / 1500 [ 40%] (Warmup)
Chain 4 Iteration: 600 / 1500 [ 40%] (Warmup)
Chain 1 Iteration: 700 / 1500 [ 46%] (Warmup)
Chain 2 Iteration: 600 / 1500 [ 40%] (Warmup)
Chain 3 Iteration: 700 / 1500 [ 46%] (Warmup)
Chain 4 Iteration: 700 / 1500 [ 46%] (Warmup)
Chain 1 Iteration: 800 / 1500 [ 53%] (Warmup)
Chain 3 Iteration: 800 / 1500 [ 53%] (Warmup)
Chain 2 Iteration: 700 / 1500 [ 46%] (Warmup)
Chain 1 Iteration: 900 / 1500 [ 60%] (Warmup)
Chain 4 Iteration: 800 / 1500 [ 53%] (Warmup)
Chain 3 Iteration: 900 / 1500 [ 60%] (Warmup)
Chain 2 Iteration: 800 / 1500 [ 53%] (Warmup)
Chain 4 Iteration: 900 / 1500 [ 60%] (Warmup)
Chain 3 Iteration: 1000 / 1500 [ 66%] (Warmup)
Chain 2 Iteration: 900 / 1500 [ 60%] (Warmup)
Chain 3 Iteration: 1001 / 1500 [ 66%] (Sampling)
Chain 1 Iteration: 1000 / 1500 [ 66%] (Warmup)
Chain 1 Iteration: 1001 / 1500 [ 66%] (Sampling)
Chain 3 Iteration: 1100 / 1500 [ 73%] (Sampling)
Chain 4 Iteration: 1000 / 1500 [ 66%] (Warmup)
Chain 4 Iteration: 1001 / 1500 [ 66%] (Sampling)
Chain 2 Iteration: 1000 / 1500 [ 66%] (Warmup)
Chain 2 Iteration: 1001 / 1500 [ 66%] (Sampling)
Chain 3 Iteration: 1200 / 1500 [ 80%] (Sampling)
Chain 1 Iteration: 1100 / 1500 [ 73%] (Sampling)
Chain 4 Iteration: 1100 / 1500 [ 73%] (Sampling)
Chain 2 Iteration: 1100 / 1500 [ 73%] (Sampling)
Chain 3 Iteration: 1300 / 1500 [ 86%] (Sampling)
Chain 4 Iteration: 1200 / 1500 [ 80%] (Sampling)
Chain 3 Iteration: 1400 / 1500 [ 93%] (Sampling)
Chain 1 Iteration: 1200 / 1500 [ 80%] (Sampling)
Chain 2 Iteration: 1200 / 1500 [ 80%] (Sampling)
Chain 3 Iteration: 1500 / 1500 [100%] (Sampling)
Chain 3 finished in 7.9 seconds.
Chain 4 Iteration: 1300 / 1500 [ 86%] (Sampling)
Chain 1 Iteration: 1300 / 1500 [ 86%] (Sampling)
Chain 2 Iteration: 1300 / 1500 [ 86%] (Sampling)
Chain 4 Iteration: 1400 / 1500 [ 93%] (Sampling)
Chain 2 Iteration: 1400 / 1500 [ 93%] (Sampling)
Chain 1 Iteration: 1400 / 1500 [ 93%] (Sampling)
Chain 4 Iteration: 1500 / 1500 [100%] (Sampling)
Chain 4 finished in 9.2 seconds.
Chain 2 Iteration: 1500 / 1500 [100%] (Sampling)
Chain 2 finished in 9.9 seconds.
Chain 1 Iteration: 1500 / 1500 [100%] (Sampling)
Chain 1 finished in 10.2 seconds.
All 4 chains finished successfully.
Mean chain execution time: 9.3 seconds.
Total execution time: 10.3 seconds.