Help to write code in Stan

Job ID: 31082398

Budget: $30 – $250 USD

I need a experienced programmer capable of writing code in Stan.
The task is to fix some within my code.

Running the code of Example.R results in the error:
Compiling Stan program...
Error in stanc(file = file, model_code = model_code, model_name = model_name, :
0

Semantic error in 'string', line 22, column 16 to column 32:

Ill-typed arguments supplied to function 'f_B'. Available signatures:
(int, int, real, real[]) => real
Instead supplied arguments of incompatible type: int, int, real.

Furthermore as I am using the brms-interface, I would like to define the a-parameters of the spline-function as an k x 1 - array where I could either define the spline-parameters as random-effects (with a normal population prior with a common mu- and sigma-parameter) or giving every individual array-element its own prior?