Skip to content

Commit

Permalink
Fix spacing in vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesarm committed Apr 11, 2024
1 parent d14d506 commit cf4d3ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions doc/RDHonest.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ rn
rc

## -----------------------------------------------------------------------------
100 * (1 - (rc$coefficients$conf.high-rc$coefficients$conf.low) /
(rn$coefficients$conf.high-rn$coefficients$conf.low))
ci_len <- c(rc$coefficients$conf.high-rc$coefficients$conf.low,
rn$coefficients$conf.high-rn$coefficients$conf.low)
100 * (1 - ci_len[1]/ci_len[2])

## -----------------------------------------------------------------------------
dd <- data.frame()
Expand Down
5 changes: 3 additions & 2 deletions doc/RDHonest.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ rule-of-thumb curvature and also smaller standard errors (this would be true
even if the bandwidth was kept fixed). Correspondingly, the CIs are tighter by
about 6 percentage points:
```{r}
100 * (1 - (rc$coefficients$conf.high-rc$coefficients$conf.low) /
(rn$coefficients$conf.high-rn$coefficients$conf.low))
ci_len <- c(rc$coefficients$conf.high-rc$coefficients$conf.low,
rn$coefficients$conf.high-rn$coefficients$conf.low)
100 * (1 - ci_len[1]/ci_len[2])
```

In the fuzzy RD case, we need to covariate-adjust the treatment $D_i$ as well as
Expand Down
Binary file modified doc/RDHonest.pdf
Binary file not shown.
5 changes: 3 additions & 2 deletions vignettes/RDHonest.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ rule-of-thumb curvature and also smaller standard errors (this would be true
even if the bandwidth was kept fixed). Correspondingly, the CIs are tighter by
about 6 percentage points:
```{r}
100 * (1 - (rc$coefficients$conf.high-rc$coefficients$conf.low) /
(rn$coefficients$conf.high-rn$coefficients$conf.low))
ci_len <- c(rc$coefficients$conf.high-rc$coefficients$conf.low,
rn$coefficients$conf.high-rn$coefficients$conf.low)
100 * (1 - ci_len[1]/ci_len[2])
```

In the fuzzy RD case, we need to covariate-adjust the treatment $D_i$ as well as
Expand Down

0 comments on commit cf4d3ae

Please sign in to comment.