getdetectionlimit: Gets the detection limit stored in the data set

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

Description

The detection limit of those values below-detection-limit are stored as negative values in compositional dataset. This function extracts that information.

Usage

1
getDetectionlimit(x,dl=attr(x,"detectionlimit"))

Arguments

x

a data set

dl

a default to replace the information in the dataset

Details

For a proper treatment of truncated data it would be necessary to know the detection limit even for observed data. Unfortunately, there is no clear way to encode this information without annoying the user.

Value

a matrix in the same shape as x, with a positive value (the detection limit) where available, and NA in the other cells.

Author(s)

K.Gerald van den Boogaart

References

Boogaart, K.G. v.d., R. Tolosana-Delgado, M. Bren (2006) Concepts for handling of zeros and missing values in compositional data, in E. Pirard (ed.) (2006)Proceedings of the IAMG'2006 Annual Conference on "Quantitative Geology from multiple sources", September 2006, Liege, Belgium, S07-01, 4pages, ISBN 978-2-9600644-0-7, http://www.stat.boogaart.de/Publications/iamg06_s07_01.pdf

See Also

compositions.missings,zeroreplace

Examples

1
2
x <- c(2,-0.5,4,3,-0.5,5,BDLvalue,MARvalue,MNARvalue)
getDetectionlimit(x)

compositions documentation built on May 20, 2017, 1:08 a.m.

Search within the compositions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.