Skip to content

Missing constant coefficient when fixed effects used? #87

Open

Description

@jche713

When fixed effect variables are included in the formula, the constant coefficient is no longer calculated and/or displayed in the regression results. Is there a way to adjust this so that the constant is also estimated?

Thanks

Activity

  1. eloualiche commented on Feb 12, 2020

    @eloualiche
    Member

    Thanks a lot for your positive feedback on our ongoing project.
    Maybe you could submit a pull request where the regression output also prints some well defined constant (outside of the fixed effects themselves).

  2. junder873 commented on Apr 2, 2021

    @junder873
    Contributor

    I was curious about this so I decided to do some checking. Stata's reghdfe just averages the fixed effects and sums those values. So, if the fixed effects are saved, then the intercept would be:
    sum(mean.(skipmissing.(eachol(rr.fe))))

    I think adding this is also necessary to solve #134 since to predict values where there is not a fixed effect, Stata uses the intercept.

  3. Melodyitian commented on Mar 24, 2022

    @Melodyitian

    Sorry

    Thanks a lot for your positive feedback on our ongoing project. Maybe you could submit a pull request where the regression output also prints some well defined constant (outside of the fixed effects themselves).

    Sorry, how to submit a pull request to make the coefficient of constant show ?

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