Extract quantities useful for model summaries
jsdmstan-extractors.Rd
These are methdos for extracting various useful summaries from models, including the model parameter names, NUTS parameters, the log posterior, r-hat and n-eff ratio.
Usage
get_parnames(object, log_lik = FALSE)
# S3 method for class 'jsdmStanFit'
nuts_params(object, ...)
# S3 method for class 'jsdmStanFit'
log_posterior(object, ...)
# S3 method for class 'jsdmStanFit'
rhat(object, ...)
# S3 method for class 'jsdmStanFit'
neff_ratio(object, ...)
Value
get_parnames()
returns a character vector of model parameter names.nuts_params()
returns a molten data frame (see reshape2::melt()
). The
data frame should have columns "Parameter" (factor), "Iteration" (integer),
"Chain" (integer), and "Value" (numeric).log_posterior()
returns a molten data frame (see reshape2::melt()
). The
data frame should have columns "Chain" (integer), "Iteration" (integer),
and "Value" (numeric).rhat()
, neff_ratio()
both return named numeric vectors.