dat <- data.frame(a = rnorm(10), b = rnorm(10), c = rep(1:2, 5))
mod <- feols(a ~ b, data = dat)
mod2 <- feols( a ~ b | c, data = dat)
update(mod, . ~ . | c)
# Error in update.default(fixef_old, fixef_new_fml) :
# need an object with call component
update(mod, . ~ .) # works
update(mod2, . ~ . | . - c) # works
update(mod2, . ~ . | .) # works
I'd expect the first call to work and give the same result as mod2.
Here's a test case:
I'd expect the first call to work and give the same result as
mod2
.Fixest version 0.11.2.