When running the sampler on a model which doesn't have any parameters, the command program should be
able to detect whether or not the model has no parameters, and in this case, it should run fixed_param automatically.
Description:
It is extremely annoying to get the "fixed_param" error message when trying to use Stan programs to produce simulated data.
Summary:
When running the sampler on a model which doesn't have any parameters, the command program should be able to detect whether or not the model has no parameters, and in this case, it should run fixed_param automatically.
Description:
It is extremely annoying to get the "fixed_param" error message when trying to use Stan programs to produce simulated data.
check here: https://github.com/stan-dev/cmdstan/blob/9b711ed1bd13db3d29c3df682333abe3813abb10/src/cmdstan/command.hpp#L390-L392
instead of quitting, the reasonable thing to do is run the non-adaptive sampler for the specified number of sampling iterations.
Reproducible Steps:
here's a datagen program in Stan:
Current Output:
Run the Stan sampler - error message: "Must use algorithm=fixed_param for model that has no parameters."
Expected Output:
Describe what you expect the output to be. Knowing the correct behavior is also very useful.
Should just work.
Current Version:
v2.25.0