ESD_test {mcradds}R Documentation

EDS Test for Outliers

Description

[Experimental]

Perform Rosner's generalized extreme Studentized deviate (ESD) test, which assumes that the distribution is normal (Gaussian), can be used when the number of outliers is unknown, and becomes more robust as the number of samples increases.

Usage

ESD_test(x, alpha = 0.05, h = 5)

Arguments

x

(numeric)
vector of observations that can be the difference from Bland-Altman analysis. Normally the relative difference is preferred in IVD trials. Missing(NA) is allowed but will be removed. There must be at least 10 available observations in x.

alpha

(numeric)
type-I-risk, \alpha.

h

(integer)
the positive integer indicating the number of suspected outliers. The argument h must be between 1 and n-2 where n denotes the number of available values in x. The default value is h = 5.

Value

A list class containing the results of the ESD test.

Note

The algorithm for determining the number of outliers is as follows:

References

CLSI EP09A3 Appendix B. Detecting Aberrant Results (Outliers).

Examples

data("platelet")
res <- blandAltman(x = platelet$Comparative, y = platelet$Candidate)
ESD_test(x = res@stat$relative_diff)

[Package mcradds version 1.1.0 Index]