@@ -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:
0 commit comments