Skip to content

Commit 4f027df

Browse files
committed
updated subsequent documentation
1 parent 542a956 commit 4f027df

3 files changed

Lines changed: 38 additions & 21 deletions

File tree

R/rejection_sampling.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ thin_samples <- function(n, z_sorted, stage_sorted) {
2828
#'
2929
#' Computes the parameters of a three-parameter lognormal distribution for use
3030
#' as a probabilistic maximum stage (PMF) in rejection sampling. The shift
31-
#' parameter defines the hard lower bound of the distribution. The function
32-
#' supports two modes: (1) supplying a best estimate and assuming sigma, or
31+
#' parameter defines the lower or upper bound of the distribution (typically, the lower value).
32+
#' The function supports two modes: (1) supplying a best estimate and assuming sigma, or
3333
#' (2) supplying a best estimate, low, and high to solve for sigma numerically.
3434
#'
3535
#' @param pmf_shift Numeric. Hard lower bound (shift) of the lognormal
3636
#' distribution. Must be less than all of \code{pmf_best}, \code{pmf_low},
3737
#' and \code{pmf_high}.
3838
#' @param pmf_best Numeric. Best estimate (mean) of the PMF stage distribution.
39-
#' @param pmf_sigma Numeric. Standard deviation on the log scale. Required if
39+
#' @param pmf_sigma Numeric. Assumed standard deviation on the log scale. Required if
4040
#' \code{pmf_low} and \code{pmf_high} are not supplied. Defaults to
41-
#' \code{NULL}.
42-
#' @param pmf_low Numeric. Low estimate of PMF stage (5th percentile). Optional.
41+
#' \code{NULL}. Suggested value = 0.5.
42+
#' @param pmf_low Numeric. Low estimate of PMF stage (assumed 5th percentile). Optional.
4343
#' If supplied, \code{pmf_high} must also be supplied.
44-
#' @param pmf_high Numeric. High estimate of PMF stage (95th percentile).
44+
#' @param pmf_high Numeric. High estimate of PMF stage (assumed 95th percentile).
4545
#' Optional. If supplied, \code{pmf_low} must also be supplied.
4646
#'
4747
#' @return A named list with the following elements:

man/pmf_stage_lognormal.Rd

Lines changed: 30 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/rejection_sampling_stage.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)