Closed waynelapierre closed 1 year ago
Currently, feols(y ~ x, data = data, weights = weights) needs to be feols(y ~ x, data = data, weights = data$weights). This behavior is inconsistent with R's built-in lm function.
Yes, and it will remain that way: this is on purpose. Just use ~weights, like stated in the help page.
~weights
The docs could be clearer though: I'll fix that.
Currently, feols(y ~ x, data = data, weights = weights) needs to be feols(y ~ x, data = data, weights = data$weights). This behavior is inconsistent with R's built-in lm function.