Skip to contents

Perform Diagnostics on CmdStan Fit

Usage

diagnostic_fit(fit, plot = TRUE, observed_y = NULL)

Arguments

fit

A CmdStanMCMC object returned from cmdstanr::sample()

plot

Logical; whether to show diagnostic plots

observed_y

Optional vector of observed values if predictive p-value is to be computed

Value

Invisible list of diagnostics