Learn R Programming

specmine (version 1.0)

tTests_dataset: t-Tests on dataset

Description

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

Usage

tTests_dataset(dataset, metadata.var, threshold = NULL, write.file = F, file.out = "ttests.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 t-tests, with p-value, -log10(p-value) and false discovery rate (fdr).

Examples

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

Run the code above in your browser using DataLab