mesmer.stats.LinearRegression.predict#

LinearRegression.predict(predictors, exclude=None)#

Predict using the linear model.

Parameters:
  • predictors (dict of xr.DataArray) – A dict of DataArray objects used as predictors. Must be 1D and contain dim.

  • exclude (str or set of str, default: None) – Set of variables to exclude in the prediction. May include "intercept" to initialize the prediction with 0.

Returns:

prediction (xr.DataArray) – Returns predicted values.