From 4754da823a8e57d0fa20b2de09bc0064c89d5b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Berg=C3=A9?= <43536394+lrberge@users.noreply.github.com> Date: Tue, 2 Sep 2025 16:22:09 +0200 Subject: [PATCH] add fixef.rm="none" to adapt to new fixest default in v0.13.0 In fixest v0.13.0, the new default is to remove the fixed-effects singletons. In the current test it leads to the removal of one observation, which was not the case previously, hence 3 tests not passing. --- tests/testthat/test-r-vs-stata.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-r-vs-stata.R b/tests/testthat/test-r-vs-stata.R index 7b9633e..4c5bd17 100644 --- a/tests/testthat/test-r-vs-stata.R +++ b/tests/testthat/test-r-vs-stata.R @@ -167,7 +167,7 @@ test_that("test against stata - leverage, fixef absorb", { feols_fit <- feols(ln_wage ~ union + race + msp | grade + age + birth_yr + ind_code, - data = df2) + data = df2, fixef.rm = "none") lm_fit <- lm( ln_wage ~ union + race + msp + as.factor(grade) + as.factor(age) +