getTarget {PDFEstimator}R Documentation

Define Target Outliers

Description

calculates position-dependent threshold values about the mean according to a beta distribution with parameters k and (n + 1 - k), where k is the position and n is the total number of positions. These beta distributions represent probability per position for sort order statistics for a uniform distribution. This function returns a two-column matrix defining the upper and lower variances of the scaled quantile residual for the target threshold

Usage

getTarget(Ns, target)

Arguments

Ns

number of samples

target

target confidence threshold

Details

plotTarget is intended for use with plot.PDFe density estimation objects for plotting scaled quantile residuals, but can be called as a stand-alone user method as well.

Value

bounds

a two dimensional matrix defining the upper and lower variance boundaries for the requested target.

Author(s)

Jenny Farmer, Donald Jacobs

References

Farmer, J. and D. Jacobs (2018). "High throughput nonparametric probability density estimation." PLoS One 13(5): e0196937.

See Also

plot.PDFe

Examples

#returns boundaries of position-dependent variance calculated for 100 data samples
#  for a threshold of 40%
getTarget(100, 40)

[Package PDFEstimator version 4.5 Index]