Description Usage Arguments Value Examples
View source: R/check_confounders.r
This function checks for associations between class labels and potential confounders (e.g. age, sex, or BMI) that are present in the metadata. Statistical testing is performed with Fisher's exact test or Wilcoxon test, while associations are visualized either as barplot or Q-Q plot, depending on the type of metadata.
1 | check.confounders(siamcat, fn.plot, verbose = 1)
|
siamcat |
an object of class siamcat-class |
fn.plot |
string, filename for the pdf-plot |
verbose |
control output: |
Does not return anything, but produces a single plot for each metadata category.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Example data
data(siamcat_example)
# since the whole pipeline has been run in the example data, exchange the
# normalized features with the original features
siamcat_example <- reset.features(siamcat_example)
# Simple working example
check.confounders(siamcat_example, './conf_plot.pdf')
# Additional information with verbose
## Not run:
check.confounders(siamcat_example, './conf_plot.pdf',
verbose=2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.