Logo

scikits.statsmodels.discrete.discrete_model.Logit.predict

Logit.predict(exog=None, linear=False)

Predict response variable of a model given exogenous variables.

exog : array-like
1d or 2d array of exogenous values. If not supplied, the whole exog attribute of the model is used.
linear : bool, 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.

Notes

You must fit the model first.

Previous topic

sm.discrete.discrete_model.Logit.pdf

Next topic

sm.discrete.discrete_model.Logit.score

This Page