ilod-methods: Function to impute under-LOD values from an ExposomeSet

Description Usage Arguments Value See Also Examples

Description

This function is a wrapper of the functions impute.MinProb from the package imputeLCMD.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ilod(
  object,
  seed = 1234,
  lod.col = "LOD",
  pNA = 0.2,
  tLog = FALSE,
  method = "QRILC",
  warnings = TRUE,
  ...
)

Arguments

object

ExposomeSet which exposures will be imputed.

seed

(default 1234) Seed to make the imputation reproducible.

lod.col

(default "LOD") Name of the column in fData with the threshold of the LOD.

pNA

(default 0.2) Maximum percentage allowed of values under LOD

tLog

(default FALSE) If set to TRUE it transforms all the exposures to lod before the imputation.

method

(default "QRILC") Method to be used to impute the under-LOD values. Two allowed: QRILC method (value "QRILC") and stochastic minimal value approach (value "MinProb").

warnings

(default TRUE) If set to FALSE warnings will not be displayed.

...

Arguments passed to impute.QRILC or impute.MinProb from imputeLCMD.

Value

A new ExposomeSet with the imputed exposures.

See Also

plotMissings to plot the missing data of an ExposomeSet, tableMissings to get a table with the missing data of an ExposomeSet

Examples

1
2
3
4
5
## Not run: 
#Being x an ExposomeSet
x <- ilod(x)

## End(Not run)

rexposome documentation built on March 13, 2021, 2:01 a.m.