lrberge / fixest

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

fixest2::feglm(mpg ~ wt | as.integer(cyl), data = mtcars) : #378

Closed pachadotdev closed 8 months ago

pachadotdev commented 1 year ago

I have the next error with the devel version of fixest

> fixest2::feglm(mpg ~ wt | as.integer(cyl), data = mtcars)
Error in fixest2::feglm(mpg ~ wt | as.integer(cyl), data = mtcars) : 
  Error : Invalid input type, expected 'integer' actual 'double'
This error was unforeseen by the author of the function feglm. If you think your call to the function is legitimate, could you report?

I could trace this back to 14bde73a5763fdf5e6a6df1a7c807767bfd86874, my detection was to roll commits back until this worked

cd github/lrberge/fixest
git checkout a390d3bd370642df87fedd37213317931cc71464 .
Rscript -e "devtools::install()"
lrberge commented 8 months ago

Hi, this works fine in the current version of fixest.