Retrieving constant term and it's SE
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by tracing how feols() handles fixed effects and exposes reg$sumFE, then determine how the constant term and its standard error should appear in the output. Compare the result with a regression using all fixed effects as dummies, using the constant's t-value and mean(reg$sumFE) as described in the issue.
Written by the indexing model from the issue text.
Description
I'd like to suggest a feature. When including FEs in a feols() call, I'd like to include an option to include the constant term, and it's SE in the output. Right now, you'd have to take a regression reg and then reg$sumFE %>% mean() to recover the constant, which is fine, but it doesn't give the SE. You'd have to calculate that separately on your own, or what is probably easier, re-run the regression with all FEs as dummies in the main regression, mark down the t-value associated with the constant, and then use that and the result from reg$sumFE %>% mean() to calculate the SE, which is still a bit tedious.
It's not always necessary to need the constant term, but I find it quite helpful in a lot of scenarios, and it seems too difficult to recover it properly now. I've seen at least two stack exchange posts with people requesting a feature like this, so I believe its implementation would benefit at least a handful of people.
That being said, no rush, I'm a huge fan of the fixest package, and the last thing I want to do is demand changes!
Thanks.
- Dominant language
- R
- Stars
- 464
- Forks
- 82
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 12
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lrberge/fixest
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
lrberge/fixest#686 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
lrberge/fixest#713 · 1 comment ·
Maintainers usually reply within 1 day
-
etable notes spacingOpen
Difficulty 3/5 Half a day Newbie friendliness 50/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 47/100
lrberge/fixest#689 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug dependencies R
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JamesHWade/graft#142 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100