getdetectionlimit {compositions} | R Documentation |
The detection limit of those values below-detection-limit are stored as negative values in compositional dataset. This function extracts that information.
getDetectionlimit(x,dl=attr(x,"detectionlimit"))
x |
a data set |
dl |
a default to replace the information in the dataset |
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.
a matrix in the same shape as x, with a positive value (the detection limit) where available, and NA in the other cells.
compositions.missings
,zeroreplace
x <- c(2,-0.5,4,3,-0.5,5,BDLvalue,MARvalue,MNARvalue) getDetectionlimit(x)