Description Usage Arguments Value See Also Examples
Method to calculate the correlation between the exposures of an ExposomeSet. The correlation method takes into account the nature of each pair of exposures: continuous vs. continuous uses cor function from R base, categorical vs. categorical uses cramerV function from lsr R package and categorical vs. continuous exposures correlation is calculated as the square root of the adjusted rsquare obtained from fitting a lineal model with the categorical exposures as dependent variable and the continuous exposure as independent variable. The function creates and returns an ExposomeCorr object.
1  correlation(object, ..., warnings = TRUE)

object 

... 
Other arguments passed to cor, cramersV or to lm. 
warnings 
(default 
ExposomeCorr
with the correlation between the selected
exposures and their description
plotCorrelation to plot the correlations of an ExposomeCorr, clustering to see how the exposures can cluster samples, pca to compute PCA on exposures
1 2 3 4  data("exposome")
expo.c < correlation(expo)
expo.c
expo.c.table < extract(expo.c)

Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: ‘BiocGenerics’
The following objects are masked from ‘package:parallel’:
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from ‘package:stats’:
IQR, mad, sd, var, xtabs
The following objects are masked from ‘package:base’:
anyDuplicated, append, as.data.frame, basename, cbind, colnames,
dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep,
grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank,
rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Registered S3 method overwritten by 'pryr':
method from
print.bytes Rcpp
Attaching package: ‘rexposome’
The following object is masked from ‘package:BiocGenerics’:
plotPCA
Warning messages:
1: In chisq.test(...) : Chisquared approximation may be incorrect
2: In chisq.test(...) : Chisquared approximation may be incorrect
3: In chisq.test(...) : Chisquared approximation may be incorrect
Object of class 'Exposome Correlation' (storageMode: environment)
. assayData: 104 x 104 exposurecorrelations
. element names: corr
. exposures: ldde_lip, ..., home_pesticides
. featureData: 104 exposures 7 explanations
. exposures: ldde_lip, ..., home_pesticides
. descriptions: Family, ..., .fct
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.