library(fixest)
library(broom)
data_url <- 'https://ditraglia.com/data/fake-panel-data.csv'
fake_panel <- read_csv(data_url)
feols(y ~ x | person, data = fake_panel) |>
tidy()
# A tibble: 1 × 5
term estimate std.error statistic p.value
<chr> <dbl> <dbl> <dbl> <dbl>
1 x -0.999 0.0501 -19.9 0.00000000932
# A tibble: 1 × 5
term estimate std.error statistic p.value
<chr> <dbl> <dbl> <dbl> <dbl>
1 x -1.00 0.0567 -17.6 0.0000000275