I have written a mathematical function and tested it in Python. I now want to transcribe to within Stan, but I want to make sure I haven’t messed up any of the changes in indices, and it would be good to test the Stan function anyhow.
What’s the best way to do this? I can write my new function in the functions block, but then what’s the best way to test it with various inputs and check the output?
I am using PyStan.