gneiss.regression.OLSModel

class gneiss.regression.OLSModel(*args, **kwargs)[source]

Summary object for storing ordinary least squares results.

A OLSModel object stores information about the individual balances used in the regression, the coefficients, residuals. This object can be used to perform predictions. In addition, summary statistics such as the coefficient of determination for the overall fit can be calculated.

Variables:
  • submodels (list of statsmodels objects) – List of statsmodels result objects.
  • balances (pd.DataFrame) – A table of balances where samples are rows and balances are columns. These balances were calculated using tree.
__init__(*args, **kwargs)[source]