Skip to content

Commit

Permalink
tighten example plots
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Aug 21, 2020
1 parent ff5aec6 commit 17f7f40
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 20 deletions.
32 changes: 22 additions & 10 deletions R/estimate_infections.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = snapshot$summarised,
#' reported = snapshot_cases)
#' plots <- report_plots(summarised_estimates = snapshot$summarised,
#' reported = snapshot_cases)
#'
#' plots$summary
#'
#' ## Run model with stationary Rt assumption (likely to provide biased real-time estimates)
#' stat <- estimate_infections(reported_cases, family = "negbin",
Expand All @@ -144,8 +146,10 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = stat$summarised,
#' reported = reported_cases)
#' plots <- report_plots(summarised_estimates = stat$summarised,
#' reported = reported_cases)
#'
#' plots$summary
#'
#' # Run model with fixed Rt assumption
#' fixed <- estimate_infections(reported_cases, family = "negbin",
Expand All @@ -157,8 +161,10 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = fixed$summarised,
#' reported = reported_cases)
#' plots <- report_plots(summarised_estimates = fixed$summarised,
#' reported = reported_cases)
#'
#' plots$summary
#'
#' # Run model with breakpoints
#' bkp <- estimate_infections(reported_cases, family = "negbin",
Expand All @@ -170,8 +176,10 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = bkp$summarised,
#' reported = reported_cases)
#' plots <- report_plots(summarised_estimates = bkp$summarised,
#' reported = reported_cases)
#'
#' plots$summary
#'
#' # Run model with breakpoints but with constrained non-linear change over time
#' # This formulation may increase the apparent effect of the breakpoint but needs to be tested using
Expand All @@ -187,9 +195,11 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = cbkp$summarised,
#' plots <- report_plots(summarised_estimates = cbkp$summarised,
#' reported = reported_cases)
#'
#' plots$summary
#'
#' # Pull out breakpoint summary
#' cbkp$summarised[variable == "breakpoints"]
#'
Expand All @@ -205,9 +215,11 @@
#'
#'
#' # Plot output
#' report_plots(summarised_estimates = fbkp$summarised,
#' plots <- report_plots(summarised_estimates = fbkp$summarised,
#' reported = reported_cases)
#'
#' plots$summary
#'
#' # Pull out breakpoint summary
#' fbkp$summarised[variable == "breakpoints"]
#'
Expand Down
32 changes: 22 additions & 10 deletions man/estimate_infections.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 17f7f40

Please sign in to comment.