eelbrain.Dataset.from_caselist

classmethod Dataset.from_caselist(names, cases, name=None, caption=None, info=None, random=None)

Create a Dataset from a list of cases

Parameters:
names : sequence of str

Names for the variables.

cases : sequence of sequence of { str | scalar | NDVar }

A sequence of cases, whereby each case is itself represented as a sequence of values (str or scalar). Variable type (Factor or Var) is inferred from whether values are str or not.

name : str

Name for the Dataset.

caption : str

Caption for the table.

info : dict

Info dictionary, can contain arbitrary entries and can be accessed as .info attribute after initialization. The Dataset makes a shallow copy.

random : str | sequence of str

Names of the columns that should be assigned as random factor.

Examples

See Dataset basics