mcmc_diagnostics {dynamite}R Documentation

Diagnostic Values of a Dynamite Model

Description

Prints HMC diagnostics, and lists parameters with smallest effective sample sizes and largest Rhat values. See rstan::check_hmc_diagnostics() and posterior::default_convergence_measures() for details.

Usage

mcmc_diagnostics(x, n)

## S3 method for class 'dynamitefit'
mcmc_diagnostics(x, n = 3L)

Arguments

x

[dynamitefit]
The model fit object.

n

[integer(1)]
How many rows to print in parameter-specific convergence measures. The default is 3. Should be a positive (unrestricted) integer.

Value

Returns x (invisibly).

See Also

Model diagnostics lfo(), loo.dynamitefit()

Examples

data.table::setDTthreads(1) # For CRAN
mcmc_diagnostics(gaussian_example_fit)


[Package dynamite version 1.4.9 Index]