Skip to content

ENH: diagnostic plot partial predict confidence interval #2621

Open

Description

@josef-pkt

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.

Activity

  1. josef-pkt commented on Dec 3, 2018

    @josef-pkt
    MemberAuthor

    this is included for GAM in #5370
    The confidence interval there are standard Wald conf_int for a linear combination of params.

  2. josef-pkt commented on Dec 3, 2018

    @josef-pkt
    MemberAuthor

    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

  3. added this to the 0.11 milestone on Feb 1, 2019
  4. modified the milestones: 0.11, josef on Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions