Skip to content

Commit 078f717

Browse files
committed
Fix readme bug
1 parent 9f1099c commit 078f717

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ legend(
155155
### Comparison to TWFE
156156

157157
```{r plot-compare, fig.cap="TWFE and Two-Stage estimates of Event-Study", fig.width=8, fig.height=5, dpi=300}
158-
twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf)) | unit + year, data = df_het)
158+
twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf, -1)) | unit + year, data = df_het)
159159
160160
fixest::iplot(
161161
list(es, twfe),

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,7 @@ Event-study plot with example data
218218
### Comparison to TWFE
219219

220220
``` r
221-
twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf)) | unit + year, data = df_het)
222-
#> The variable 'rel_year::20' has been removed because of collinearity (see $collin.var).
223-
```
224-
225-
``` r
221+
twfe <- feols(dep_var ~ i(rel_year, ref = c(Inf, -1)) | unit + year, data = df_het)
226222

227223
fixest::iplot(
228224
list(es, twfe),

man/figures/README-plot-compare-1.png

10.8 KB
Loading

0 commit comments

Comments
 (0)