BinaryResults.predict()

statsmodels.discrete.discrete_model.BinaryResults.predict

BinaryResults.predict(exog=None, transform=True, *args, **kwargs)

Call self.model.predict with self.params as the first argument.

Parameters:

exog : array-like, optional

The values for which you want to predict.

transform : bool, optional

If the model was fit via a formula, do you want to pass exog through the formula. Default is True. E.g., if you fit a model y ~ log(x1) + log(x2), and transform is True, then you can pass a data structure that contains x1 and x2 in their original form. Otherwise, you’d need to log the data first.

args, kwargs :

Some models can take additional arguments or keywords, see the predict method of the model for the details.

Returns:

prediction : ndarray, pandas.Series or pandas.DataFrame

See self.model.predict

© 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.discrete.discrete_model.BinaryResults.predict.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部