Calculate the log-probability given a provided vector of unconstrained parameters.
Source:R/fit.R
fit-method-log_prob.RdThe $log_prob() method provides access to the Stan model's
log_prob function.
Examples
# \dontrun{
fit_mcmc <- cmdstanr_example("logistic", method = "sample", force_recompile = TRUE)
fit_mcmc$log_prob(unconstrained_variables = c(0.5, 1.2, 1.1, 2.2))
#> [1] -130.2141
# }