Published by the Foundation for Open Access Statistics Editors-in-chief: Bettina Grün, Torsten Hothorn, Rebecca Killick, Edzer Pebesma, Achim Zeileis    ISSN 1548-7660; CODEN JSSOBK
Authors: Bill Pikounis, John Oleynick
Title: The cg Package for Comparison of Groups
Abstract: In research of medicines, the comparison of treatments, test articles, conditions, administrations, etc., is very common. Studies are completed, and the data are then most often analyzed with a default mixture of equal variance t tests, analysis of variance, and multiple comparison procedures. But even for an implicit, presumed one-factor linear model to compare groups, more often than not there is the added need to accommodate data which is better suited for expression of multiplicative effects, potential outliers, and limits of detection. Base R and contributed packages provide all the pieces to develop a comprehensive strategy to account for these needs. Such an approach includes exploration of the data, fitting models, formal analysis to gauge the magnitude of effects, and checking of assumptions. The cg package is developed with those goals in mind, using a flow of wrapper functions to guide the full analysis and interpretation of the data. Examples from our non-clinical world of research will be used to illustrate the package and strategy.

Page views:: 2800. Submitted: 2010-12-19. Published: 2013-02-02.
Paper: The cg Package for Comparison of Groups     Download PDF (Downloads: 2772)
cg_0.9-6.tar.gz: R source package Download (Downloads: 443; 118KB)
v52i01.R: R example code from the paper Download (Downloads: 523; 10KB)
v52i01-figures.R: R replication code for figures Download (Downloads: 470; 2KB)

DOI: 10.18637/jss.v052.i01

This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3) or a GPL-compatible license.