captest.capdata.CapData.fit_regression

CapData.fit_regression(filter=False, inplace=True, summary=True)

Perform a regression with statsmodels on filtered data.

Parameters:
  • filter (bool, default False) – When true removes timestamps where the residuals are greater than two standard deviations. When false just calcualtes ordinary least squares regression.

  • inplace (bool, default True) – If filter is true and inplace is true, then function overwrites the filtered data for sim or das. If false returns a CapData object.

  • summary (bool, default True) – Set to false to not print regression summary.

Returns:

Returns a filtered CapData object if filter is True and inplace is False.

Return type:

CapData