Skip to content

Commit

Permalink
Fix readme bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebutts committed Jun 21, 2024
1 parent 9f1099c commit 078f717
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Binary file modified man/figures/README-plot-compare-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 078f717

Please sign in to comment.