statsmodels.gam.generalized_additive_model.GLMGamResults.partial_values#

GLMGamResults.partial_values(smooth_index, include_constant=True)[source]#

Contribution of a smooth term to the linear prediction

Parameters:
smooth_indexint

index of the smooth term within list of smooth terms

include_constantbool

If true, then the estimated intercept is added to the prediction and its standard errors. This avoids that the confidence interval has zero width at the imposed identification constraint, e.g. either at a reference point or at the mean.

Returns:
predictedndarray

predicted value of linear term. This is not the expected response if the link function is not linear.

se_predndarray

standard error of linear prediction

Notes

This will be replaced by a predict method.