Proposal: add vcov `attr`s for `crit.val`, `conf.int`, and/or `p.values`

Open
#593 1 comment 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
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
analytics

Research direction

Start by reviewing how vcov values flow into summary, etable, iplot, and conf.int, the entry points named in the proposal. Define the scope and attribute contract with maintainers first; done would require an agreed design covering the proposed custom critical values, confidence intervals, and p-values.

Written by the indexing model from the issue text.

Description

I have been thinking about this proposal for a while in regards to the "fixest for developers" pitch. Here is my thinking:

  • Say I do a bootstrap procedure to generate the vcov. I might want to use empirical bootstrapped confidence intervals.
  • I want to use a multiplier score bootstrap to avoid problems with multiple hypothesis testing, I might want to return the vcov + critical values to use (e.g. Bonferroni correction)
  • I want to use the t-stat for cluster and/or small samples.
  • I have an IV regression and I want to report Anderson-Rubin confidence intervals
  • I want to use randomization inference to compute p-values
  • https://cran.r-project.org/web/packages/effClust/index.html custom t-stat effective number of clusters

The solution I was envisioning is to allow a set of attr be attached to the vcov and be plugged in to summary/etable/iplot/conf.int/etc. I know it would be a lofty change but I think it will prove useful for making fixest a "backend" for a ton of packages. I would probably create a lot of these, tbh.

What do we think? I can give a stab at a PR if y'all think it's a good idea

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.