print.factorplot: Print method for objects of class factorplot

Description Usage Arguments Author(s) See Also Examples

View source: R/factorplot.R

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

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

Arguments

x

An object of class factorplot.

digits

The number of digits to print in each column

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

sig

Logical indicating whether only significant differences should be printed.

...

Other arguments passed to print, currently not implemented

Author(s)

Dave Armstrong (Department of Political Science, UW-Milwaukee)

See Also

factorplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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")

factorplot documentation built on May 2, 2019, 6:06 p.m.