ksTest_dataset: Kolmogorov-Smirnov tests on dataset

Description Usage Arguments Value Examples

View source: R/univariate.R

Description

Run Kolmogorov-Smirnov Tests for each row of the data from the dataset.

Usage

1
2
ksTest_dataset(dataset, metadata.var, threshold = NULL, 
write.file = FALSE, file.out = "ks.csv")

Arguments

dataset

list representing the dataset from a metabolomics experiment.

metadata.var

metadata variable to use in the t-tests.

threshold

threshold value of the p-value.

write.file

boolean value to write or not a file with the results.

file.out

name of the file.

Value

Table with the results of the Kolmogorov-Smirnov tests, with p-value, -log10(p-value) and false discovery rate (fdr).

Examples

1
2
3
4
5
  ## Example of ks-Tests on dataset
  library(specmine.datasets)
  data(cachexia)
  kstests.result = ksTest_dataset(cachexia, "Muscle.loss", 
		  write.file = FALSE)

specmine documentation built on Sept. 21, 2021, 5:06 p.m.