diff --git a/README.Rmd b/README.Rmd index c42c76e..5f7fcbd 100755 --- a/README.Rmd +++ b/README.Rmd @@ -155,7 +155,7 @@ legend( ### Comparison to TWFE ```{r plot-compare, fig.cap="TWFE and Two-Stage estimates of Event-Study", fig.width=8, fig.height=5, dpi=300} -twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf)) | unit + year, data = df_het) +twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf, -1)) | unit + year, data = df_het) fixest::iplot( list(es, twfe), diff --git a/README.md b/README.md index 97eaa7e..7f4075c 100755 --- a/README.md +++ b/README.md @@ -218,11 +218,7 @@ Event-study plot with example data ### Comparison to TWFE ``` r -twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf)) | unit + year, data = df_het) -#> The variable 'rel_year::20' has been removed because of collinearity (see $collin.var). -``` - -``` r +twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf, -1)) | unit + year, data = df_het) fixest::iplot( list(es, twfe), diff --git a/man/figures/README-plot-compare-1.png b/man/figures/README-plot-compare-1.png index 4b1f2e1..1073262 100644 Binary files a/man/figures/README-plot-compare-1.png and b/man/figures/README-plot-compare-1.png differ