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
trying to evalute nonlinear prediction of a nonparameteric component, e.g. term composed of splines or polynomials.
For diagnostics we can use the linear prediction (even in GLM) since we are interested in nonlinearities in the effect of an individual predictor and not in the nonlinearity coming from the link function.
For the full prediction we can calculate confidence interval for the conditional expectation (of the linear term).
We can also look at partial prediction that only includes one variable or one term, similar to CCPR plots in the linear model. We also have partial predict functions available or under review (e.g. in GAM PR).
question: Can we get confidence intervals for the partial prediction?
E.g. simple case: use cov_params/t_test just for the corresponding columns.
other possibility: Should we plot the full prediction confidence interval but centered at the partial prediction?
aside: CCPR and similar don't allow for multi-column terms.
to support this automatically in general we need the design_info about terms in exog, which we have for GAM, and patsy splines, but not yet for other cases.
see #5342
Activity
josef-pkt commentedon Dec 3, 2018
this is included for GAM in #5370
The confidence interval there are standard Wald conf_int for a linear combination of params.
josef-pkt commentedon Dec 3, 2018
to support this automatically in general we need the
design_infoabout terms in exog, which we have for GAM, and patsy splines, but not yet for other cases.see #5342