eelbrain.NDVar.ols¶
-
NDVar.
ols
(self, x, name=None)¶ Sample-wise ordinary least squares regressions
Parameters: - 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 multipleVar``s can be supplied as argument list of ``Var
.- name : str
Name of the output NDVar (default is the current name).
Returns: - beta : NDVar
Per sample beta weights. The case dimension reflects the predictor variables in the same order as the Model’s effects.
See also
ols_t
- T-values for regression coefficients
Notes
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
.