R/cleaners.R
clean.conc.blq.Rd
Handle BLQ values in the concentration measurements as requested by the user.
clean.conc.blq( conc, time, ..., options = list(), conc.blq = NULL, conc.na = NULL, check = TRUE )
conc | Measured concentrations |
---|---|
time | Time of the concentration measurement |
... | Additional arguments passed to clean.conc.na |
options | List of changes to the default
|
conc.blq | How to handle a BLQ value that is between above LOQ values? See details for description. |
conc.na | How to handle NA concentrations. (See
|
check | Run |
The concentration and time measurements (data frame) filtered and cleaned as requested relative to BLQ in the middle.
NA concentrations (and their associated times) will be
handled as described in clean.conc.na
before working
with the BLQ values. The method for handling NA concentrations can
affect the output of which points are considered BLQ and which are
considered "middle". Values are considered BLQ if they are 0.
conc.blq
can be set either a scalar indicating what
should be done for all BLQ values or a list with elements named
"first", "middle", and "last" each set to a scalar.
The meaning of each of the list elements is:
Values up to the first non-BLQ value. Note that if all values are BLQ, this includes all values.
Values that are BLQ between the first and last non-BLQ values.
Values that are BLQ after the last non-BLQ value
The valid settings for each are:
Drop the BLQ values
Keep the BLQ values
Set the BLQ values to that number
Other Data cleaners:
clean.conc.na()