summary.pairwiseTest {pairwiseCI}R Documentation

Summary function for "pairwiseTest"

Description

Creates a data.frame from the output of pairwiseTest, allows to adjust raw p-values by methods implemented in p.adjust.

Usage

## S3 method for class 'pairwiseTest'
summary(object, digits = 4,
 p.adjust.method = "none", ...)

Arguments

object

An object of class "pairwiseTest", created using the function pairwiseTest

digits

number of digits for rounding of results

p.adjust.method

Method to adjust p-values for multiple hypothesis testing, see options in p.adjust.method in stats. The default in this function in "none", resulting in unadjusted p-values

...

Currently not used.

Details

Coerces the raw p-values and the corresponding group levels to a data.frame and applies p.adjust to it.

Value

A dataframe, with columns

p.val.raw

raw p-values

p.val.adj

adjusted p-values, according to the method specified in p.adjust.method

comparison

the calculated differences or ratios of parameters

groupx

levels of group x

groupy

levels of group y

and possibly further columns containing levels of by.

Examples


data(Oats)
apOats<-pairwiseTest(yield~nitro, data=Oats,
 by="Variety", method="t.test", var.equal=FALSE)
apOats

# summary just creates a data.frame from the output
summary(apOats)

# an allows application of p.adjust
# on the p.values:

summary(apOats, p.adjust.method="holm")

# See ?p.adjust.methods for the methods available.


[Package pairwiseCI version 0.1-27 Index]