Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems when regressing on only one covariate for new 'WCR' implementations #74

Open
s3alfisc opened this issue Oct 22, 2022 · 1 comment

Comments

@s3alfisc
Copy link
Owner

E.g. in classical A/B test settings without controls:

  data(voters)
  
  feols_fit <-
    fixest::feols(proposition_vote ~ 0 + treatment, data = voters)

  expect_no_error(
    boottest(
      feols_fit,
      param = "treatment",
      clustid = "group_id1", 
      B = 999, 
      bootstrap_type = "31"
    )
  )
# error in solve.default(tX1X1) 'a' is 0-dim 

What happens? X1 is equal to the full design matrix X minus the column k for which the hypothesis beta_k = 0 is tested. If X is only a vector, X1 is obviously not something one can compute on.

Related to #72

@s3alfisc
Copy link
Owner Author

This is only a problem for the 'new' bootstrap types.

@s3alfisc s3alfisc changed the title Problems when regressing on only one covariate Problems when regressing on only one covariate for new 'WCR' implementations Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant