Skip to contents

Displays a formatted summary of the effects of parameter modifications on prototype computations, showing changes in category marginal probabilities, probability differences, and relative risk ratios.

Usage

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

Arguments

x

A compositionalEffect object created by compositionalEffect.

...

Additional arguments passed to print methods (currently unused).

Value

Invisibly returns the input object x

Details

The print method displays:

Category Marginal Probabilities

Shows the marginal category probabilities before and after the parameter modification, computed as column means of the probability matrices

Δ Probs

The probability differences (modified - baseline) for each feature within each category. Positive values indicate higher probabilities in the modified condition

Risk Ratio

The relative risk ratios (modified / baseline) for each feature within each category. Values > 1 indicate higher relative probability in the modified condition, values < 1 indicate lower relative probability

All numeric values are rounded to 3 decimal places for readability.

See also

compositionalEffect for creating compositionalEffect objects