Computes summary statistics from a nutpie_fit object, compatible with cmdstanr's summary() method. This method mimics cmdstanr's interface where summary() is called with named arguments where names are column names and values are function names or formulas.

# S3 method for class 'nutpie_fit'
summary(object, variables = NULL, ...)

Arguments

object

A nutpie_fit object.

variables

Character vector of variable names to summarize. If NULL, summarizes all variables.

...

Named arguments where names are output column names and values are function names (strings) or formulas for computing statistics.

Value

A data.frame with summary statistics, compatible with cmdstanr format.