imputeLOD: Function to impute values under limit of detection

Description Usage Arguments Value Examples

View source: R/imputeLOD.R

Description

Homologous function to the ilod method of ExposomeSet for a given data.frame of exposures and a vector of threshold. The use of this function is related to HELIX Project.

Usage

1
2
3
4
5
6
7
8
9
imputeLOD(
  x,
  lod,
  description = NULL,
  pNA = 0.2,
  pLOD = 0,
  log = TRUE,
  seed = NULL
)

Arguments

x

data.frame containing the exposures as columns and the samples as rows.

lod

vectro containing the

description

1 means values under LOD while 2 means quantifiable value, 3

pNA

(default: 0.2) maximum percentage of allowed missing data

pLOD

(default: 0) minimum percentave of values under LOD

log

(default: NA) log transformation to normalize data

seed

(default: NULL)

Value

A new data.frame with the imputed exposures.

Examples

1
2
3
4
5
## Not run: 
inma.imp <- imputeLOD(x = raw, lod = lod, description = desc,
     pNA = pNA, pLOD = pLOD, log = log, seed = seed)

## End(Not run)

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