statsmodels.genmod.families.family.Tweedie¶
-
class statsmodels.genmod.families.family.Tweedie(link=
None, var_power=1.0, eql=False, check_link=True)[ソース]¶ Tweedie family.
- Parameters:¶
- link
alinkinstance,optional The default link for the Tweedie family is the log link. Available links are log, Power and any aliases of power. See statsmodels.genmod.families.links for more information.
- var_power
float,optional The variance power. The default is 1.
- eqlbool
If True, the Extended Quasi-Likelihood is used, else the likelihood is used. In both cases, for likelihood computations the var_power must be between 1 and 2.
- check_linkbool
If True (default), then and exception is raised if the link is invalid for the family. If False, then the link is not checked.
- link
- Attributes:¶
Methods
variance
参考
statsmodels.genmod.families.family.FamilyParent class for all links.
- リンク機能
Further details on links.
Notes
Loglikelihood function not implemented because of the complexity of calculating an infinite series of summations. The variance power can be estimated using the
estimate_tweedie_powerfunction that is part of the statsmodels.genmod.generalized_linear_model.GLM class.Methods
deviance(endog, mu[, var_weights, ...])The deviance function evaluated at (endog, mu, var_weights, freq_weights, scale) for the distribution.
fitted(lin_pred)Fitted values based on linear predictors lin_pred.
loglike(endog, mu[, var_weights, ...])The log-likelihood function in terms of the fitted mean response.
loglike_obs(endog, mu[, var_weights, scale])The log-likelihood function for each observation in terms of the fitted mean response for the Tweedie distribution.
predict(mu)Linear predictors based on given mu values.
resid_anscombe(endog, mu[, var_weights, scale])The Anscombe residuals
resid_dev(endog, mu[, var_weights, scale])The deviance residuals
starting_mu(y)Starting value for mu in the IRLS algorithm.
weights(mu)Weights for IRLS steps
Properties
Link function for family