You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FAQ-D/SUMM: model and results methods, required and usage #5500
What methods are required?
What are the methods used for?
We need additional methods in models and results classes that are required by some extra functionality. The extra generic functionality becomes available if the additional methods are available.
This issue is a companion for #1970 which has required attributes.
examples for usage:
margins requires derivatives
sandwiches require score_obs
score_test requires score_factor, hessian_factor for shortcut for variable addition test
MixedMixin requires loglike_obs
outlier-influence: requires some derivatives, hat_matrix_diag, ...
two-part models like ZeroInflated count models use loglikeobs
...
GenericLikelihoodModel has loglikeobs used to compute numerical derivative for score_obs. I did not see any other usage in a quick look.
loglike is not directly needed for estimating equation optimizers, e.g. ls in OLS/WLS, irls or our newton. (e.g. tweedie does not yet have loglike)
get_prediction for se_mean in d_fittedvalues_scaled
_deriv_score_obs_dendog derivative of score_obs w.r.t. endog
_deriv_mean_dparams Derivative of the expected endog with respect to the parameters, I'm adding it to CountModel
available methods in CountModel, added for margins, AFAIR
_derivative_predict docstring is not clear what it is, describes usage, looks like derivative of predict w.r.t. params
same as _deriv_mean_dparams except for elasticities option ?
_derivative_exog seems to be derivative of mean or predict w.r.t. exog
Activity
josef-pkt commentedon Dec 11, 2020
MLEInfluence for Poisson requires
get_predictionfor se_mean in d_fittedvalues_scaled_deriv_score_obs_dendogderivative of score_obs w.r.t. endog_deriv_mean_dparamsDerivative of the expected endog with respect to the parameters, I'm adding it to CountModelavailable methods in CountModel, added for margins, AFAIR
_derivative_predictdocstring is not clear what it is, describes usage, looks like derivative of predict w.r.t. paramssame as
_deriv_mean_dparamsexcept for elasticities option ?_derivative_exogseems to be derivative of mean or predict w.r.t. exog