eelbrain.NDVar.ols¶
-
NDVar.
ols
(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 – Per sample beta weights. The case dimension reflects the predictor variables in the same order as the Model’s effects.
- Return type
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
.See also
ols_t
T-values for regression coefficients