R/fit.R
fit-method-unconstrain_variables.RdThe $unconstrain_variables() method transforms input parameters to
the unconstrained scale
unconstrain_variables(variables)(list) A list of parameter values to transform, in the same
format as provided to the init argument of the $sample() method.
log_prob(), grad_log_prob(), constrain_variables(),
unconstrain_variables(), unconstrain_draws(), variable_skeleton(),
hessian()
# \dontrun{
fit_mcmc <- cmdstanr_example("logistic", method = "sample")
fit_mcmc$init_model_methods()
#> Error: Model methods cannot be used with a pre-compiled Stan executable, the model must be compiled again
fit_mcmc$unconstrain_variables(list(alpha = 0.5, beta = c(0.7, 1.1, 0.2)))
#> Error: The method has not been compiled, please call `init_model_methods()` first
# }