standardize-methods: #' Summary of an ExposomeSet. #' #' Given an ExposomeSet is...

Description Usage Arguments Value See Also Examples

Description

Given an ExposomeSet it standardizes the exposures by using mean/sd if method is "normal" or by using median/mad if method is "robust".

Usage

1
standardize(object, select, method = "normal", na.rm = TRUE, warnings = TRUE)

Arguments

object

ExposomeSet with exposures to be standardized.

select

Subseting of exposures of phenotypes.

method

(default "normal") Character selecting the method to be applied ("normal" "iqr" or "robust").

na.rm

(by default TRUE) Removes NA data to perform standardization.

warnings

(defaulr TRUE) If set to FALSE warnings are not shown.

Value

An ExposomeSet with the selected exposures standardized and keeping the others exposures as the original input object.

See Also

highAndLow to transform the continuous exposures to levelled factors, trans to transform the exposures

Examples

1
2
3
4
data("exposome")
exp.sn <- standardize(expo, method = "normal", select = "lbde100_lip")
exp.rs <- standardize(expo, method = "iqr", select = "lbde100_lip")
exp.rs <- standardize(expo, method = "robust", select = "lbde100_lip")

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