mesmer.stats.LinearRegression

mesmer.stats.LinearRegression#

class mesmer.stats.LinearRegression#

Ordinary least squares Linear Regression for xr.DataArray objects.

__init__()#

Methods

__init__()

fit(predictors, target, dim[, weights, ...])

Fit a linear model

from_netcdf(filename, **kwargs)

read params from a netCDF file

predict(predictors[, exclude])

Predict using the linear model.

residuals(predictors, target)

Calculate the residuals of the fitted linear model

to_netcdf(filename, **kwargs)

save params to a netCDF file

Attributes

params

The parameters of this estimator.