getdetectionlimit {compositions} | R Documentation

## Gets the detection limit stored in the data set

### Description

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

### Usage

    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)

### References

### See Also

`compositions.missings`,`zeroreplace`

### Examples

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

[Package compositions version 0.91-6 Index]