statsmodels.gam.generalized_additive_model.LogitGam.score_factor

LogitGam.score_factor(params)

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β