get_output_samples | R Documentation |
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)
fit |
A |
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)")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.