eelbrain.testnd.LM

class eelbrain.testnd.LM(y, model, ds=None, coding='dummy', subject=None, sub=None)

Fixed effects linear model

Parameters
  • y (NDVar) – Dependent variable.

  • model (Model) – Model to fit.

  • ds (Dataset) – Optional Dataset providing data for y/model.

  • coding ('dummy' | 'effect') – Model parametrization (default is dummy coding). Vars are centered for effect coding (but not for dummy coding).

  • subject (str) – Optional information used by LMGroup.

  • sub (index) – Only use part of the data.

See also

LMGroup

Examples

See Two-stage test example.

Methods

coefficient(term)

NDVar with regression coefficient for a given term

t(term)

NDVar with t-values for a given term