Skip to content

Commit

Permalink
feols fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvalal committed Aug 6, 2024
1 parent f20fc36 commit fde6ef3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions duckreg/duckreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def fit(self):
if self.n_bootstraps > 0:
self.vcov = self.bootstrap()
fit._vcov = self.vcov
fit.get_inference()
fit._vcov_type = "NP-Bootstrap"
fit._vcov_type_detail = "NP-Bootstrap"
return fit

else:
Expand Down
4 changes: 2 additions & 2 deletions duckreg/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def estimate(self):
return wls(X, y, n)

def estimate_feols(self):
pass
raise NotImplementedError("feols solver not implemented for Mundlak estimator")

def bootstrap(self):
rhs = (
Expand Down Expand Up @@ -501,7 +501,7 @@ def estimate(self):
return wls(X, y, n)

def estimate_feols(self):
pass
raise NotImplementedError("feols solver not implemented for double-demeaning")

def bootstrap(self):
boot_coefs = np.zeros((self.n_bootstraps, 2)) # Intercept and treatment effect
Expand Down

0 comments on commit fde6ef3

Please sign in to comment.