blandaltman_stats#

mobgap.plotting.blandaltman_stats(
reference: Series,
detected: Series,
x_val: Literal['mean', 'reference', 'detected'] = 'mean',
) tuple[Series, Series][source]#

Calculate the Bland-Altman statistics.

Parameters:
reference

The reference measurements

detected

The detected measurements

x_val

Which value to use for the x-axis. Can be one of mean, reference, detected. mean is the mean of the reference and detected values. This is typically used for a Bland-Altman plot. reference is the reference values. This is typically used for a residual plot.

Returns:
x

The x-values for the plot (depends on x_val, is always a copy)

y

The y-values for the plot (detected - reference)