statsmodels.discrete.discrete_model.BinaryModel.predict

BinaryModel.predict(params, exog=None, which='mean', linear=False, offset=None)[source]

Predict response variable of a model given exogenous variables.

Parameters
paramsarray_like

Fitted parameters of the model.

exogarray_like

1d or 2d array of exogenous values. If not supplied, the whole exog attribute of the model is used.

linearbool, optional

If True, returns the linear predictor dot(exog,params). Else, returns the value of the cdf at the linear predictor.

Returns
array

Fitted values at exog.