Learn R Programming

FTICRMS (version 0.8)

display.tests: Display Full Test Information for Peaks

Description

Displays full test information (not just p-values) for peaks generated by run.analysis.

Usage

display.tests(sig.rows = "all", summ = "anova", tests, form = parameter.list$form, use.model = parameter.list$use.model, ...)

Arguments

sig.rows
numeric or character vector used to select rows of sigs; default value returns all significant tests
summ
either a function or string representing a function which can be applied to the output of use.model or "none"
tests
numeric or character vector used to select rows of clust.mat; default value returns the rows in clust.mat corresponding to the rows in sigs[sig.rows,]
form
formula for use in lm; default is the one that was used to generate the significant peaks
use.model
function or string representing a function; what test to apply to data
...
arguments to be passed to use.model

Value

A list with components equal to the models or summaries for the requested peaks.

Details

If use.model in run.analysis evaluates to anything other than t.test, then the only thing reported on each peak by run.analysis is the p-value. This program takes a specified subset of the significant peaks and returns a list consisting of the models generated by use.model (if summ = "none") or summ applied to those models. Typical values for summ include anova and summary.

Although the program is designed to be used on significant peaks, by defining tests directly in the function call, you can access any of the peaks in clust.mat. If tests is defined in the function call, its value overrides anything specified by sig.rows.

See Also

run.analysis, anova, lm, t.test