CmdStanDiagnose: CmdStanDiagnose objects

CmdStanDiagnoseR Documentation

CmdStanDiagnose objects

Description

A CmdStanDiagnose object is the object returned by the $diagnose() method of a CmdStanModel object.

Methods

CmdStanDiagnose objects have the following associated methods:

Method Description
$gradients() Return gradients from diagnostic mode.
$lp() Return the total log probability density (target).
$init() Return user-specified initial values.
$metadata() Return a list of metadata gathered from the CmdStan CSV files.
$save_output_files() Save output CSV files to a specified location.
$save_data_file() Save JSON data file to a specified location.

See Also

The CmdStanR website (mc-stan.org/cmdstanr) for online documentation and tutorials.

The Stan and CmdStan documentation:

Other fitted model objects: CmdStanGQ, CmdStanLaplace, CmdStanMCMC, CmdStanMLE, CmdStanPathfinder, CmdStanVB

Examples

## Not run: 
test <- cmdstanr_example("logistic", method = "diagnose")

# retrieve the gradients
test$gradients()

## End(Not run)


stan-dev/cmdstanr documentation built on May 1, 2024, 7:17 a.m.