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
The Spline basis function support derivatives, so it's just work to connect those.
We need a which option for it in GLMGam.
Currently the model GLMGam.predict is all inherited. only the GLMGamResults class has it's own predict and get_prediction methods to handle "exog" spline basis function generation.
This might be as simple as adding deriv=0 option to predict and _tranform_predict_exog and transmitting it to the spline transform method.
Maybe not so trivial for non-identity link: deriv for linear predictor still needs to be combined with the derivative of the inverse link function evaluated at the predicted mean. We might have the relevant pieces for margeff in GLM.
We need to make sure that the regression params match the spline derivative basis function to compute linear predictor derivative.
(Thought triggered while looking at articles for splines in quantile regression.)
The text was updated successfully, but these errors were encountered:
AFAICS, we don't support computing derivative of predicted mean w.r.t. a spline exog variable.
related topics for margins, margeff, e.g. #6479
The Spline basis function support derivatives, so it's just work to connect those.
We need a
which
option for it in GLMGam.Currently the model GLMGam.predict is all inherited. only the GLMGamResults class has it's own predict and get_prediction methods to handle "exog" spline basis function generation.
This might be as simple as adding
deriv=0
option topredict
and_tranform_predict_exog
and transmitting it to the splinetransform
method.Maybe not so trivial for non-identity link: deriv for linear predictor still needs to be combined with the derivative of the inverse link function evaluated at the predicted mean. We might have the relevant pieces for margeff in GLM.
We need to make sure that the regression params match the spline derivative basis function to compute linear predictor derivative.
(Thought triggered while looking at articles for splines in quantile regression.)
The text was updated successfully, but these errors were encountered: