censpp: Probability Plotting Positions

View source: R/censpp.R

censppR Documentation

Probability Plotting Positions

Description

Generates the sequence of probability points for uncensored and censored values

Usage

censpp(x, a = 0.44)

## Default S3 method:
censpp(x, a = 0.44)

## S3 method for class 'lcens'
censpp(x, a = 0.44)

## S3 method for class 'mcens'
censpp(x, a = 0.44)

Arguments

x

a vector of observations

a

the offset fraction to be used; typically in [0, 0.5].

Value

A list with these components:

Note that xrcn and pprcn are provided only if there are right-censored values.

x

sorted uncensored observations.

pp

corresponding plotting positions for uncensored observations.

xcen

sorted left-censored observations.

ppcen

corresponding plotting positions for left-censored observations.

xrcn

sorted right-censored observations.

pprcn

corresponding plotting positions for right-censored observations.

Note

The left-censored plotting positions are adjusted by the method of Helsel and Cohn (1988), which produces a mean of 0.5 for all data.

References

Helsel, D.R. and Cohn, T.A., 1988, Estimation of descriptive statistics for multiply censored water quality data: Water Resources Research v. 24, n. 12, pp.1997-2004

See Also

ppoints

Examples

# This example demonstrates the probability adjustments made for censoring
# The raw, uncensored data:
ppoints(7, .44)
# censor ar 0.5 (the lowest 3 values)
censpp(as.lcens(ppoints(7, .44), 0.5))


USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.