diff options
author | Naeem Model <me@nmode.ca> | 2023-06-21 15:56:12 +0000 |
---|---|---|
committer | Naeem Model <me@nmode.ca> | 2023-06-21 15:56:12 +0000 |
commit | c85280a9cfe1f46eb4bc260d7f479a33d86dceff (patch) | |
tree | e14928565b80793d177607ce321a06e9993c41c2 /man/WP_unknown.Rd | |
parent | e0988851b26668ec69131e22a0815ce6f85b94c4 (diff) |
Re-generate docs
Diffstat (limited to 'man/WP_unknown.Rd')
-rw-r--r-- | man/WP_unknown.Rd | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/man/WP_unknown.Rd b/man/WP_unknown.Rd index c3872d6..f625019 100644 --- a/man/WP_unknown.Rd +++ b/man/WP_unknown.Rd @@ -7,19 +7,29 @@ WP_unknown(NT, B = 100, shape.max = 10, scale.max = 10, tol = 0.999) } \arguments{ -\item{NT}{vector of case counts} +\item{NT}{Vector of case counts.} -\item{B}{length of grid for shape and scale (grid search parameter)} +\item{B}{Length of grid for shape and scale (grid search parameter).} -\item{shape.max}{maximum shape value (grid search parameter)} +\item{shape.max}{Maximum shape value (grid \code{search} parameter).} -\item{scale.max}{maximum scale value (grid search parameter)} +\item{scale.max}{Maximum scale value (grid \code{search} parameter).} -\item{tol}{cutoff value for cumulative distribution function of the serial distribution, defaults to 0.999} +\item{tol}{cutoff value for cumulative distribution function of the serial distribution (defaults to 0.999).} } \value{ -The function returns \code{Rhat}, the maximum likelihood estimator of R0, as well as the maximum likelihood estimator of the discretized serial distribution given by \code{p} (the probability mass function) and \code{range.max} (the distribution has support on the integers one to \code{range.max}). The function also returns \code{resLL} (all values of the log-likelihood) at \code{shape} (grid for shape parameter) and at \code{scale} (grid for scale parameter), as well as \code{resR0} (the full vector of maximum likelihood estimators), \code{JJ} (the locations for the likelihood for these), and \code{J0} (the location for the maximum likelihood estimator \code{Rhat}). If \code{JJ} and \code{J0} are not the same, this means that the maximum likelihood estimator is not unique. +The function returns \code{Rhat}, the maximum likelihood estimator of R0, as well as the maximum + likelihood estimator of the discretized serial distribution given by \code{p} (the probability mass + function) and \code{range.max} (the distribution has support on the integers one to \code{range.max}). + The function also returns \code{resLL} (all values of the log-likelihood) at \code{shape} (grid for + shape parameter) and at \code{scale} (grid for scale parameter), as well as \code{resR0} (the full + vector of maximum likelihood estimators), \code{JJ} (the locations for the likelihood for these), and + \code{J0} (the location for the maximum likelihood estimator \code{Rhat}). If \code{JJ} and \code{J0} + are not the same, this means that the maximum likelihood estimator is not unique. } \description{ -This is a background/internal function called by \code{WP}. It computes the maximum likelihood estimator of R0 assuming that the serial distribution is unknown but comes from a discretized gamma distribution. The function then implements a simple grid search algorithm to obtain the maximum likelihood estimator of R0 as well as the gamma parameters. +This is a background/internal function called by \code{WP}. It computes the maximum likelihood estimator +of R0 assuming that the serial distribution is unknown but comes from a discretized gamma distribution. +The function then implements a simple grid search algorithm to obtain the maximum likelihood estimator +of R0 as well as the gamma parameters. } |