classmethod RLM.from_formula(formula, data, subset=None, drop_cols=None, *args, **kwargs)
Create a Model from a formula and dataframe.
Parameters: |
|
---|---|
Returns: |
model |
Return type: |
Model instance |
data must define __getitem__ with the keys in the formula terms args and kwargs are passed on to the model instantiation. E.g., a numpy structured or rec array, a dictionary, or a pandas DataFrame.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.robust.robust_linear_model.RLM.from_formula.html