statsmodels.regression.recursive_ls.RecursiveLS.from_formula#

classmethod RecursiveLS.from_formula(formula, data, subset=None, constraints=None)[source]#

Create a RecursiveLS model instance from a formula and dataframe.

Parameters:
formulastr or generic Formula object

The formula specifying the model.

dataarray_like

The data for the model. See Notes.

subsetarray_like

An array-like object of booleans, integers, or index values that indicate the subset of df to use in the model. Assumes df is a pandas.DataFrame.

constraintsarray_like, str, or tuple

See RecursiveLS for details.

Returns:
modelRecursiveLS instance