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
We don't have explicit looo, jackknife residuals (resid_response).
I'm not sure whether we already have all the computation for it, for other statistics.
looo residuals look like a useful tool.
In the GLM, discrete cases we could also add other residuals based on looo, e.g. resid_pearson.
other predictive statistics, looo-fittedvalues, looo-implied-var and similar might also be useful.
(model.predict has "which" option and takes params as argument, but likely not a 2dim params vectorized by rows)
OLSInfluence has dffits which is studentized change in fittedvalues, but no dffit without studenization
MLEInfluence has d_fittedvalues, one-step approximation to change in fittedvalues (based on derivative for slope of fittedvalues/mean function, not finite difference) dy/dparams * dparams
(diff and derivative are the same in linear models)
for overdispersed poisson, we could try to get looo-scale, i.e. mean of pearson residuals with looo
in poisson: residuals**2 / fittedvalues using looo/jackknife values
Activity
josef-pkt commentedon Sep 23, 2023
OLSInfluence has
dffitswhich is studentized change in fittedvalues, but nodffitwithout studenizationMLEInfluence has
d_fittedvalues, one-step approximation to change in fittedvalues (based on derivative for slope of fittedvalues/mean function, not finite difference) dy/dparams * dparams(diff and derivative are the same in linear models)
d_fittedvalues_i = yhat_i - yhat_{i, -i} (approx)resid_{i, -i} = y_i - yhat_{i, -i} = (y_i - yhat_i) + (yhat_i - yhat_{i, -i}) = resid_i + d_fittedvalues_ialternatively we can compute difference to predicted value at distorted params
fittedvalues_{i, -i} = predict(params + dparams)
josef-pkt commentedon Sep 23, 2023
for plotting:
for overdispersed poisson, we could try to get looo-scale, i.e. mean of pearson residuals with looo
in poisson: residuals**2 / fittedvalues using looo/jackknife values
[-]ENH: outlier, influence add looo, jacknife residuals[/-][+]ENH: outlier, influence add looo, jackknife residuals[/+]ENH: add one-step LOOO residuals and fitted values to MLEInfluence