Ok, this may seem like a silly question but I am stuck.
I got the following error message:
Error in new_CppObject_xp(fields$.module, fields$.pointer, …) :
Exception: mismatch in number dimensions declared and found in context; processing stage=data initialization; variable name=Xk_new; dims declared=(4); dims found=(4,1)
In R, my Xk_new variable is created simply as:
Xk_new <- t(prod_attr[6,2:5])
where prod_attr is a data.frame.
This is how I declare Xk_new in the stan code:
I also tried vector, but it also failed. Please help! Thank you.