censpp: Probability Plotting Positions

Description Usage Arguments Value Note References See Also Examples

View source: R/smwrQW_x_censpp.R

Description

Generates the sequence of probability points for uncensored and censored values

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
5
# 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))

leppott/baytrends033 documentation built on July 28, 2018, 10:30 p.m.