R/fit.R
fit-method-mle.Rd
The $mle()
method is only available for CmdStanMLE
objects.
It returns the penalized maximum likelihood estimate (posterior mode) as a
numeric vector with one element per variable. The returned vector does not
include lp__
, the total log probability (target
) accumulated in the
model block of the Stan program, which is available via the
$lp()
method and also included in the
$draws()
method.
mle(variables = NULL)
A numeric vector. See Examples.
if (FALSE) { # \dontrun{
fit <- cmdstanr_example("logistic", method = "optimize")
fit$mle("alpha")
fit$mle("beta")
fit$mle("beta[2]")
} # }