mexwas-methods: Testing the association between an exposure and a phenotype...

mexwasR Documentation

Testing the association between an exposure and a phenotype of an ExposomeSet using a multivariate aproach.

Description

The mexwas method performs an "Multi Exposome-Wide Association Study" (m-ExWAS) using the exposures in ExposomeSet and one of its phenotype. It uses the packages glmnet and partDSA.

Usage

mexwas(object, phenotype, family, warnings = TRUE)

Arguments

object

ExposomeSet that will be used for the ExWAS.

phenotype

Target phenotype used for the study. If missing all the phenotypes in the ExposomeSet will be used.

family

It must decrive the nature of the outcome. Can take values "gaussian", "binomial", "poisson", "multinomial", "cox" or "mgaussian".

warnings

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

Value

Returns an object of class mExWAS

See Also

extract to obtain a table with the result of the ExWAS, plotExwas to plot the results of the ExWAS

Examples

data("exposome")
wt <- mexwas(expo[3:7, 1:100], phenotype = "asthma", family = "binomial")

isglobal-brge/rexposome documentation built on Feb. 4, 2023, 12:35 p.m.