Skip to content

Style: Naming Conventions #487

Open
Open

Description

@jseabold

Use mask in name for boolean indexes and idx for integer indexes. Not sure about where exactly this is used but sounds like a good style convention to get used to. Need to add to style docs and maybe do some cleanup internally as these are noticed.

Activity

  1. jseabold commented on Apr 6, 2014

    @jseabold
    MemberAuthor

    Discussed in #1294 to have the following convention for plotting.

    Methods: plot_xxx
    Functions: xxx_plot

    Will need some review and deprecations to get there for the latter at least. Need to add this to our naming conventions docs.

  2. jseabold commented on Apr 22, 2014

    @jseabold
    MemberAuthor
  3. josef-pkt commented on Apr 22, 2014

    @josef-pkt
    Member

    k_exog = df_model + k_constant might not be so relevant,
    I would prefer a more general k_params to cover cases like NegativeBinomial and nonlinear least squares.

    in GenericLikelihood I also used in a few places df_modelwc with constant included, which would be the same as k_exog.

    I'm also planning on df_resid_inference or something like this, when we use a different df_resid just for f_test and t_test while the rest is calculated with the current df_resid. A problem that I ran into with cluster robust inference after OLS.

    one problem: how do we count things #1624

  4. josef-pkt commented on Apr 22, 2014

    @josef-pkt
    Member

    related: I started a wiki page to collect notes https://github.com/statsmodels/statsmodels/wiki/SMEP-D:-Naming-Convention
    So far it ended up more about Definitions than about just names.

  5. josef-pkt commented on Apr 22, 2014

    @josef-pkt
    Member

    about k_exog again:
    In tsa it has a specific meaning because it's combined with the lag coefficients, and possibly separate trend.
    In the other model it's simple to get, it's just exog.shape[1] if we want specific to the number of exogs.

  6. josef-pkt commented on May 22, 2018

    @josef-pkt
    Member

    #4426 exog_names versus param_names
    #4030 for a general list of inconsistencies across models
    #1970 attributes that are required

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions