Skip to content

Commit

Permalink
check getting started -drive by fix plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Nov 25, 2024
1 parent 7b87a34 commit d2f4798
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vignettes/epidist.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ obs_cens |>
) +
# The primary event censoring intervals
geom_errorbarh(
aes(xmin = ptime_lwr, xmax = ptime_upr, y = case, yend = case),
aes(xmin = ptime_lwr, xmax = ptime_upr, y = case),
col = "#56B4E9", height = 5
) +
# The secondary event censoring intervals
geom_errorbarh(
aes(xmin = stime_lwr, xmax = stime_upr, y = case, yend = case),
aes(xmin = stime_lwr, xmax = stime_upr, y = case),
col = "#009E73", height = 5
) +
geom_point(aes(x = ptime), fill = "white", col = "#56B4E9", shape = 21) +
Expand All @@ -190,7 +190,6 @@ obs_cens |>
During an outbreak we will usually be estimating delays in real time.
The result is that only those cases with a secondary event occurring before some time will be observed.
This is called (right) truncation, and biases the observation process towards shorter delays:
<!-- I think possible to do a better job with showing what right truncation is with a figure here! -->

```{r}
obs_time <- 25
Expand Down

0 comments on commit d2f4798

Please sign in to comment.