eelbrain.Interaction.as_var

Interaction.as_var(labels, default=None, name=None)

Convert into a Var

Parameters
  • labels (Dict[Union[str, Tuple[str, ...]], float]) – A {old_value: new_value} mapping.

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

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

Return type

Var