X-Git-Url: https://git.nmode.ca/Rnaught/blobdiff_plain/9d7b542a1eb1eead875ad7f939936e4d8ac83145..5f4889d4df5e94f194ef7f8b839496db04b17f4e:/R/WP_known.R?ds=sidebyside diff --git a/R/WP_known.R b/R/WP_known.R index 563b7ae..4c43ed2 100644 --- a/R/WP_known.R +++ b/R/WP_known.R @@ -3,11 +3,12 @@ #' This is a background/internal function called by \code{WP}. It computes the maximum #' likelihood estimator of R0 assuming that the serial distribution is known and finite discrete. #' -#' @param NT vector of case counts -#' @param p discretized version of the serial distribution -#' @return The function returns \code{Rhat}, the maximum likelihood estimator of R0. +#' @param NT Vector of case counts. +#' @param p Discretized version of the serial distribution. #' -#' @export +#' @return The function returns the maximum likelihood estimator of R0. +#' +#' @keywords internal WP_known <- function(NT, p) { k <- length(p) TT <- length(NT) - 1