NDVar.ols(self, x, name=None)

Sample-wise ordinary least squares regressions

x : Model | str

Predictor or predictors. A Model to regress over cases, or a dimension name to regress against values of one of the NDVar’s dimensions. A Model with multiple Var``s can be supplied as argument list of ``Var.

name : str

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

beta : NDVar

Per sample beta weights. The case dimension reflects the predictor variables in the same order as the Model’s effects.

See also

T-values for regression coefficients


The intercept is generated internally, and betas for the intercept are not returned. If you need access to more details of the results, consider using testnd.LM.