This function retrieves the number of output samples from a Stan fit object, supporting different methods (MHC and Variational) based on the available data within the object.
get_output_samples(fit)
The number of output samples used in the Stan model. Returns from MHC if available, otherwise from Variational inference.
# Assuming 'fit' is a stanfit object obtained from running a Stan model
print("samples_count = get_output_samples(fit)")
#> [1] "samples_count = get_output_samples(fit)"