Does the init argument work with cmdstanr?

if you want to know what the full set of initializations chosen for all parameters, you will need to get that information from the stan::services layer - the initialize function takes the user specified values or init radius and creates a stan::io::var_context object with initial values for all model parameters. I don’t think we have a good way of dumping the contents of a var_context object as text - I might be wrong. see https://github.com/stan-dev/stan/blob/ea71828c75ca084fb2e978e57b4d143a39f4a224/src/stan/services/util/initialize.hpp#L69. given this, very much appreciate Aki’s trick.

CmdStan only knows what the user-specified inits are - this information is already reported in the Stan CSV file header comments section.

entirely agree, but the problem needs to be addressed at the stan::io / stan::services layer.

1 Like