Learn R Programming

specmine (version 1.0)

ksTest_dataset: Kolmogorov-Smirnov tests on dataset

Description

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

Usage

ksTest_dataset(dataset, metadata.var, threshold = NULL, write.file = F, 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

Run this code
  ## Example of ks-Tests on dataset
  data(cachexia)
  kstests.result = ksTest_dataset(cachexia, "Muscle.loss", 
		  write.file = FALSE)

Run the code above in your browser using DataLab