Hi,

I have encountered the following error:

Unrecoverable error evaluating the log probability at the initial value.

ran beyond end of program in trace()

ran beyond end of program in trace()

I have cmdstan 2.20.0,

code is in cliff.stan (3.3 KB)

data is cliff.data.r (281.0 KB)

Can somebody help me to figure out what is wrong? The stan model is to fit time series data (how much canopy is left on the tree each year) but instead ar(1) model I am using neural network with 1 hidden layer with 5 nodes.

Few notes. When I decrease the dimensionality of design matrix X1â€¦ from 13 columns to 4 columns and decrease hidden layer to 1 node I get the following but it keeps sampling. BTW, this message occurs only once.

Informational Message: The current Metropolis proposal is about to be rejected because of the following issue:

ran beyond end of program in trace()

If this warning occurs sporadically, such as for highly constrained variable types like covariance matrices, then the sampler is fine,

but if this warning occurs often then your model may be either severely ill-conditioned or misspecified.