Skip to contents

Empirical plotting positions (i - alpha) / (n + 1 - 2 * alpha) for a sample of size n, by named method or explicit alpha.

Usage

plotting_positions(
  n,
  method = c("weibull", "median", "blom", "cunnane", "gringorten", "hazen"),
  alpha = NULL
)

Arguments

n

the sample size.

method

one of "weibull" (alpha = 0, the default), "median" (0.3175), "blom" (0.375), "cunnane" (0.4), "gringorten" (0.44), or "hazen" (0.5). Ignored when alpha is given.

alpha

optional explicit plotting-position parameter in [0, 0.5].

Value

A numeric vector of n non-exceedance probabilities for the ordered sample.

Examples

plotting_positions(10)
#>  [1] 0.09090909 0.18181818 0.27272727 0.36363636 0.45454545 0.54545455
#>  [7] 0.63636364 0.72727273 0.81818182 0.90909091
plotting_positions(10, method = "cunnane")
#>  [1] 0.05882353 0.15686275 0.25490196 0.35294118 0.45098039 0.54901961
#>  [7] 0.64705882 0.74509804 0.84313725 0.94117647