X-Git-Url: https://git.nmode.ca/Rnaught/blobdiff_plain/9c1a5668803e735f034700c55028ffc0146f1e93..18358add05e58e466ba7098f771e20d8d0599d0e:/R/computeLL.R diff --git a/R/computeLL.R b/R/computeLL.R index 6acfc78..01c0d57 100644 --- a/R/computeLL.R +++ b/R/computeLL.R @@ -2,12 +2,13 @@ #' #' This is a background/internal function called by \code{WP}. It computes the log-likelihood. #' -#' @param NT vector of case counts -#' @param p discretized version of the serial distribution -#' @param R0 basic reproductive ratio -#' @return The function returns the variable \code{LL} which is the log-likelihood at the input variables and parameters. +#' @param NT Vector of case counts. +#' @param p Discretized version of the serial distribution. +#' @param R0 Basic reproductive ratio. #' -#' @export +#' @return This function returns the log-likelihood at the input variables and parameters. +#' +#' @keywords internal computeLL <- function(p, NT, R0) { k <- length(p) TT <- length(NT) - 1