eelbrain.NDVar.residuals

NDVar.residuals(x, name=None)

The residuals of sample-wise ordinary least squares regressions

Parameters:
  • x (Model) – Predictor or predictors. Can also be supplied as argument that can be converted to a Model, for example Var or list of Var.

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

Returns:

residuals – Residual for each case and sample (same dimensions as data).

Return type:

NDVar