Skip to content

Commit

Permalink
adding doc
Browse files Browse the repository at this point in the history
  • Loading branch information
thibautjombart committed Dec 5, 2017
1 parent 60c9046 commit 65630e1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
16 changes: 13 additions & 3 deletions R/get_R.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@
#' @return A list with the \code{earlyR} class, containing the following
#' components:
#' \itemize{
#' \item
#' \item \code{$incidence}: the input incidence, in its original format
#'
#' \item
#' \item \code{$R_grid}: the grid of R values for which the likelihood has been
#' computed.
#'
#' \item
#' \item \code{$R_like}: the values of likelihood corresponding to the
#' \code{$R_grid}
#'
#' \item \code{$R_ml}: the maximum likelihood estimate of R
#'
#' \item \code{$dates}: the dates for which infectiousness has been computed
#'
#' \item \code{$lambdas}: the corresponding values of force of infection
#'
#' \item \code{$si}: the serial interval, stored as a \code{distcrete} object
#'
#' }
#'
Expand Down
22 changes: 22 additions & 0 deletions man/get_R.Rd

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

1 change: 1 addition & 0 deletions tests/testthat/test_get_R.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ test_that("Test against reference results", {
R_1 <- get_R(i, si = si)
expect_equal_to_reference(R_1, file = "rds/R_1.rds")

expect_identical(i, R_1$incidence)
})


Expand Down

0 comments on commit 65630e1

Please sign in to comment.