statsmodels.discrete.discrete_model.Logit.score_factor

Logit.score_factor(params)[source]

Logit model derivative of the log-likelihood with respect to linpred.

Parameters:
paramsarray_like

The parameters of the model

Returns:
score_factorarray_like

The derivative of the loglikelihood for each observation evaluated at params.

Notes

lnLiβ=(yiλi)

for observations i=1,...,n

where the loglinear model is assumed

lnλi=xiβ

Last update: Oct 03, 2024