eelbrain.Interaction.as_var

Interaction.as_var(labels, default=None, name=None)[source]

Convert into a Var

Parameters:
  • labels (dict[str | tuple[str, ...], float]) – A {old_value: new_value} mapping.

  • default (float) – Default value for old values not mentioned in labels. If not specified, old values missing from labels will raise a KeyError.

  • name (str) – Name of the output Var (default is current name).

Return type:

Var