eelbrain.NDVar.residuals

NDVar.residuals(self, 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 : NDVar

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