The formula is: $$asymind = \frac{2|A-B|}{(A+B)} $$

asymind(left, right)

Arguments

left

Numeric. The value representing the left side of the measurement.

right

Numeric. The value representing the right side of the measurement.

Value

Numeric value representing the Symmetry-Adjusted Mean (SAM).

Examples

# Example usage:
left <- 5
right <- 3
asymind(left, right)
#> [1] 0.5

# For a symmetric case:
asymind(5, 5)
#> [1] 0