| comparisonsTable {cg} | R Documentation | 
Create a Table of Comparisons amongst Groups
Description
Create a table of comparisons based on a fit by the cg package.
Usage
comparisonsTable(fit, type = "pairwisereflect", alpha = 0.05, addpct = FALSE,
 display = "print", ...)
Arguments
fit | 
 A fit object created with a   | 
type | 
 Can be one of four values: 
  | 
alpha | 
 Significance level, by default set to   | 
addpct | 
 Only relevant if   | 
display | 
 One of three valid values: 
  | 
... | 
 Additional arguments, depending on the specific method written for the object. See the method-specific documentation for additional details.  | 
Value
A method-specific comparisonsTable object is returned.
See the specific methods for discussion of return values.
Note
Contact cg@billpikounis.net for bug reports, questions, concerns, and comments.
Author(s)
Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]
See Also
comparisonsTable.cgOneFactorFit,
comparisonsTable.cgPairedDifferenceFit.
Examples
#### One Factor data
data(canine)
canine.data <- prepareCGOneFactorData(canine, format="groupcolumns",
                                      analysisname="Canine",
                                      endptname="Prostate Volume",
                                      endptunits=expression(plain(cm)^3),
                                      digits=1, logscale=TRUE, refgrp="CC")
canine.fit <- fit(canine.data)
canine.comps0 <- comparisonsTable(canine.fit)
canine.comps1 <- comparisonsTable(canine.fit,  mcadjust=TRUE,
                                   type="allgroupstocontrol", refgrp="CC")
data(gmcsfcens)
gmcsfcens.data <- prepareCGOneFactorData(gmcsfcens, format="groupcolumns",
                                         analysisname="cytokine",
                                         endptname="GM-CSF (pg/ml)",
                                         logscale=TRUE)
gmcsfcens.fit <- fit(gmcsfcens.data, type="aft")
gmcsfcens.comps <- comparisonsTable(gmcsfcens.fit)
## Paired Difference data
data(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
                                                 analysisname="Anorexia FT",
                                                 endptname="Weight",
                                                 endptunits="lbs",
                                                 expunitname="Patient",
                                                 digits=1,
                                                 logscale=TRUE)
anorexiaFT.fit <- fit(anorexiaFT.data)
comparisonsTable(anorexiaFT.fit)