Thoughts about `round` argument

Open
#666 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
r

Research direction

Start by reviewing the current round and digits argument behavior, including how etable uses the formatting options. Compare the proposed separate-argument and named-list approaches, then establish an agreed migration path that preserves existing users and defines the updated interface.

Written by the indexing model from the issue text.

Description

I recently made a table and found it had a series of nuisance parameters with very small magnitudes (i.e. $7.8 * 10^{-6}$). I quickly found that my problem is that I had set digits = 3 rather than digits = "r3", probably years ago when I started using fixest and before the argument had been updated. No harm no foul. I can't argue against defaults, if someone is in a field where the disciplinary norm is not to rescale magnitudes and where substantive importance can be held at many digits after the decimal they would prefer the scientific notation version.

But my sense is that this is a very non-standard way to specify an argument. Internally to parse the argument you must need to split the character and the number, which is a little odd on the processing side. On the user side I think it functions like a bit of a micro-domain specific language (counter: so are a lot of the etable arguments because templating almost requires DSL-like features). The more typical way to do this in R would be either (a) make it be two arguments; or else (b) make it be one argument where the argument is a named list. Then assign defaults.

Perhaps inertia dictates keeping the weird argument to avoid breaking things, though the deprecation of se in favour of vcov suggests that you can migrate users successfully over time.

Let's stipulate in advance that this is very low priority and not really hurting anyone. Still thought I'd report it. If you had a Discussions section I'd probably raise it there, since this is not exactly a "bug" so much as it is a medium-friction design decision.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lrberge/fixest

All issues in lrberge/fixest

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.