statsmodels.genmod.generalized_linear_model.GLM.estimate_tweedie_power

GLM.estimate_tweedie_power(mu, method='brentq', low=1.01, high=5.0)[source]

Tweedie specific function to estimate scale and the variance parameter. The variance parameter is also referred to as p, xi, or shape.

Parameters:
muarray_like

Fitted mean response variable

methodstr, defaults to ‘brentq’

Scipy optimizer used to solve the Pearson equation. Only brentq currently supported.

lowfloat, optional

Low end of the bracketing interval [a,b] to be used in the search for the power. Defaults to 1.01.

highfloat, optional

High end of the bracketing interval [a,b] to be used in the search for the power. Defaults to 5.

Returns:
powerfloat

The estimated shape or power.


Last update: Mar 18, 2024