in class="content" id="quarto-document-content">

<div>
This is an old version, <a href="https://mc-stan.org/docs/cmdstan-guide/log_prob_config.html">view current version</a>.
</div>




<section id="extracting-log-probabilities-and-gradients-for-diagnostics" class="level1">
<h1>Extracting log probabilities and gradients for diagnostics</h1>
<p>CmdStan can return the computed log probability and the gradient with respect to a set of parameters.</p>
<p>This is similar to the <code>diagnose</code> subcommand,