# S4 method for stanfit
summary(object, pars, probs = c(0.025, 0.25, 0.50, 0.75, 0.975),
use_cache = TRUE, ...)
lp__
).quantile
s of interest.
The default is c(0.025,0.25,0.5,0.75,0.975)
.TRUE
. When use_cache=TRUE
the summary quantities for all parameters are computed and cached for future
use. Setting use_cache=FALSE
can be used to avoid performing the
summary computations for all parameters if pars
is given as some
specific parameters.summary
method returns a named list with elements summary
and c_summary
, which contain summaries for for all chains merged and
individual chains, respectively.
Included in the summaries are quantiles, means, standard deviations (sd),
effective sample sizes (n_eff), and split Rhats (the potential scale
reduction derived from all chains after splitting each chain in half and
treating the halves as chains). For the summary of all chains merged,
Monte Carlo standard errors (se_mean) are also reported.monitor
, which computes similar summaries but accepts an
array of MCMC draws as its input rather than a stanfit
object.