Dear stan community. I am having a similar issue and have tried the solutions given here to no avail. I have therefore posted it as a separate question at SYNTAX ERROR, MESSAGE(S) FROM PARSER: Variable definition base type mismatch, variable declared as base type: vector variable definition has base.
Thank you in advance for any help.