Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

print.factorplot

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.

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

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")

factorplot

Graphical Presentation of Simple Contrasts

v1.1-2
GPL (>= 2)
Authors
Dave Armstrong (Department of Political Science, UW-Milwaukee)
Initial release
2016-06-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.