print.factorplot {factorplot}R Documentation

Print method for objects of class factorplot

Description

Prints the output from an object of class factorplot. By default, the function prints all pairwise differences along with standard errors and p-values (optionally adjusted for multiple testing). Optionally, it can print only significant differences.

Usage

## S3 method for class 'factorplot'
print(x, ..., digits = 3, sig = FALSE, trans = NULL)

Arguments

x

An object of class factorplot.

...

Other arguments passed to print, currently not implemented

digits

The number of digits to print in each column

sig

Logical indicating whether only significant differences should be printed.

trans

A character string representing the post-hypothesis-testing transformation to be performed on the estimates. For example, if the estimates provided to the factorplot command are log-floating absolute risks, you could use the transformation ‘exp’. The transformation is performed through a call to do.call

Value

Printed output

The printed output shows the difference between all pairs of stimuli (i.e., levels of the factor) along with their standard errors and (optionally adjusted) p-values. If a transformation is implemented, the difference is transformed accordingly, but the standard errors and other values are on the linear scale.

Author(s)

Dave Armstrong

See Also

factorplot

Examples


est1 <- log(c(1.00,2.12,1.44,1.31,1.44,
     1.46,0.90))
var1 <- c(0.242,0.096,0.156,0.140,
     0.380,0.484,0.375)^2
names(est1) <- c(
     "Normal & superficial gastritis", 
     "Chronic gastritis", 
     "Chronic atrophic gastritits", 
     "Intestinal metaplasia I", 
     "Intestinal metaplasia II", 
     "Intestinal metaplasia III", 
     "Dysplasia")
plummer_fp1 <- factorplot(est1, var=var1, resdf=Inf)
print(plummer_fp1, trans="exp")

[Package factorplot version 1.2.3 Index]