I am running a model which leads to the following error message:

Rejecting initial value:

Error evaluating the log probability at the initial value.

Exception: lognormal_lpdf: Random variable is nan, but must not be nan! (in ‘model12782ba84fc6_Shrimp’ at

line 64)

Working with

R 3.4.3

Rtools 34

Rstudio 1.1.383

The model code, data, and initials can be found in the attachments.

Any help will be greatly appreciated

Shrimpscript.R (1.0 KB)

Shrimp.stan (1.7 KB)