lrberge / fixest

Fixed-effects estimations
https://lrberge.github.io/fixest/
362 stars 59 forks source link

find weights column within data #374

Closed waynelapierre closed 1 year ago

waynelapierre commented 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.

lrberge commented 1 year ago

Yes, and it will remain that way: this is on purpose. Just use ~weights, like stated in the help page.

lrberge commented 1 year ago

The docs could be clearer though: I'll fix that.