isglobal-brge / rexposome

Bioconductor package to characterize, analyze and integrate exposome with omic and disease data
MIT License
11 stars 1 forks source link

using only categorical values for exposures #4

Open lucas2chen opened 1 year ago

lucas2chen commented 1 year ago

when using the function exwas with exposures composed of only categorical values the following message appears Error in base::eigen(cormat) : infinite or missing values in 'x'

is rexposome/exwas build to analyze exposure that are categorical, if so how can I do this?

ESCRI11 commented 1 year ago

Hello! The error message you are getting comes from the computation of the threshold of effective tests. This computation works for datasets that only contain numeric exposures.

In order to avoid that computation but still get the ExWAS results please use the following

exwas(..., tef = FALSE, ...)