exptailecdf: Empirical Cumulative Distribution Function with Exponential...

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/exptailecdf.R

Description

Computes the empirical cumulative distribution funciton (ecdf) of a given vector of observations, and approximates the tails of the ecdf with exponential curves.

Usage

1
exptailecdf(x, N = max(2, 0.002 * length(x)), m = min(N, 5))

Arguments

x

the given vector of observations

N

the number of observations at each tail of the ecdf used for estimating the exponential curves.

m

the mth observation from each extreme of the ecdf is the starting point to use the estimated exponential curves.

Details

An ecdf has a probability of 0 or 1 for any new observation that lies beyond the range of the data of the cedf. This is a problem when using the ecdf as the reference cdf for the one-sample Anderson-Darling (AD) statistic because the AD statistic is infinite/undefined with such probabilities. The ecdf with exponential tail approximation replaces the tails of the ecdf with exponential curves, which extend to infinity, to solve this problem. The exponential curves are estimated using the observations at the tails of the ecdf. See Bui and Apley (2017) for more details.

Value

An object of class exptailecdf. See exptailecdf.object

Author(s)

Anh Bui

References

Bui, A.T. and Apley., D.W. (2018a) "A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics, 60, 1-13.

See Also

exptailecdf.object, pexptailecdf, ecdf, ad

Examples

1
2
r <- rnorm(1000)
Fr <- exptailecdf(r)

spc4sts documentation built on April 10, 2018, 1:04 a.m.