How to run tranformed parameters block?

Hello, I am new to stan.
I was able to install stanc3, cmdstan, rstan, cmdstanr and to run a simple regression in Getting Started.

How can I run the transformed parameters block of stan code?
I would like, for example, to run an example solving an algebraic equation.
This example is deterministic and there is no point to use sample method in cmdstan(r).

I was able find a way to call algebraic_solver written directly in C++.

Perhaps you could call the sample method with the input argument fixed_param=TRUE? See this section of the reference manual.

Dear Frank,

Thank you for your comment.
I was not aware of the section that show an example without model.
It seems that I also need num_samples=1 to avoid 1000 times iterations.

1 Like