eta_squared_np#

obsidian.experiment.advanced_design.eta_squared_np(cat_codes, num_values)[source]#

Compute the eta-squared effect size between a categorical and a numeric variable.

Parameters:
  • cat_codes – Integer-coded category labels (1-D array).

  • num_values – Numeric values (1-D array, same length as cat_codes).

Returns:

Eta-squared in [0, 1].

Return type:

float