
Summary method for clusters_results objects
Source: R/testing_through_time.R
summary.clusters_results.RdProduces a detailed textual summary of a time-resolved Bayesian GAMM analysis, including model metadata, the number of clusters detected, and descriptive statistics of cluster durations. A rounded cluster table is also printed.
Usage
# S3 method for class 'clusters_results'
summary(object, digits = 3, ...)Arguments
- object
An object of class
"clusters_results"created bytesting_through_time.- digits
Integer; number of decimal places used when printing numeric values (default:
3).- ...
Additional arguments (currently ignored).
Details
The summary prints:
the model type used (
"full","summary", or"group");the class of the underlying brms model and the number of posterior draws;
the number of clusters detected by the posterior odds threshold;
descriptive statistics for cluster durations (minimum, maximum, mean, median, and total duration);
a neatly formatted table listing each cluster's onset, offset, and duration.
If no clusters were detected, the function prints a message and returns invisibly.