Skip to contents

Custom print method for objects of class bipod. This method prints a summary of the bipod object, including details on the number of observations, the number of time windows, and the status of various tasks (such as breakpoints inference, two-population inference, and single-population inference). It also provides summaries of the inferred parameters, including mean values, standard deviations, quantiles, and Rhat values for each inference task.

Usage

# S3 method for class 'bipod'
print(x, ...)

Arguments

x

An object of class bipod. This object must contain various elements including metadata, counts, and fitted model objects such as fit, breakpoints_fit, and two_pop_fit.

...

Additional parameters for the default S3 method (not used).

Value

Nothing. This function prints output to the console, providing a detailed summary of the bipod object.

Details

The print.bipod function summarizes key information about the bipod object, such as:

  • The number of observations and time windows in the dataset.

  • The inference tasks performed, including breakpoints inference, two-population inference, and single-population inference.

  • The Rhat values, mean, standard deviation, and quantiles (5%, 50%, 95%) for the inferred parameters in each task.

  • The status of each task (pass or fail), including the use of variational sampling and any scale factors.

The function uses the cli package to format the output with colors and other visual enhancements.