Skip to content

ENH: extracting categorical info from patsy #2292

Open

Description

@josef-pkt

we need the information how categorical exog are encode
either for exog created by formula, or as a general description ()
(
) we should define meta information for params and exog independently of whether from_formula was used or not.

for example predict is able to convert exog with stateful transform including categoricals. How does this work? I haven't checked.

use cases:

  • Margins: currently not implemented for categoricals except for binary (dummy)
  • predict at: similar to margins case
    we need to fix the categorical to one level for all observations, e.g. set on dummy to 1 and the other dummy variables to zero.
  • all pairs t_test
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions