fwildclusterboot icon indicating copy to clipboard operation
fwildclusterboot copied to clipboard

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

Open s3alfisc opened this issue 3 years ago • 1 comments

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 avatar Oct 22 '22 09:10 s3alfisc

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

s3alfisc avatar Nov 19 '22 16:11 s3alfisc