Learn R Programming

vcdExtra (version 0.5-2)

vcdExtra-package: Extensions and additions to vcd: Visualizing Categorical Data

Description

This package provides additional data sets, documentation, and a few functions designed to extend the vcd package for Visualizing Categorical Data and the gnm package for Generalized Nonlinear Models. In particular, vcdExtra extends mosaic, assoc and sieve plots from vcd to handle glm() and gnm() models and adds a 3D version in mosaic3d.

Arguments

Details

ll{ Package: vcdExtra Type: Package Version: 0.5-2 Date: 2010-11-28 License: GPL version 2 or newer LazyLoad: yes } The main purpose of this package is to serve as a sandbox for introducing extensions of mosaic plots and related graphical methods that apply to loglinear models fitted using glm() and related, generalized nonlinear models fitted with gnm() in the gnm-package package. The method mosaic.glm extends the mosaic.loglm method in the vcd package to this wider class of models. mosaic3d introduces a 3D generalization of mosaic displays using the rgl package.

In addition, there are several new data sets, a new vignette, [object Object] and a few functions for manipulating categorical data sets and working with models for categorical data.

A new class, glmlist, is introduced for working with collections of glm objects, e.g., Kway for fitting all K-way models from a basic marginal model, and summarise for brief statistical summaries of goodnes-of-fit for a collection of models.

For square tables with ordered factors, Crossings supplements the specification of terms in model formulas using Symm, Diag, Topo, etc. in the gnm-package.

Some of these extensions may be migrated into vcd or gnm.

A collection of demos is included to illustrate fitting and visualizing a wide variety of models: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] Use demo(package="vcdExtra") for a complete current list.

The vcdExtra now contains a large number of data sets illustrating various forms of categorical data analysis and related visualizations, from simple to advanced. Use data(package="vcdExtra") for a complete list, or datasets(package="vcdExtra") for an annotated one showing the class and dim for each data set.

References

Friendly, M. Visualizing Categorical Data, Cary NC: SAS Insitute, 2000. Web materials: http://www.datavis.ca/books/vcd/.

Meyer, D.; Zeileis, A. & Hornik, K. The Strucplot Framework: Visualizing Multi-way Contingency Tables with vcd Journal of Statistical Software, 2006, 17, 1-48. Available in R via vignette("strucplot", package = "vcd")

Turner, H. and Firth, D. Generalized nonlinear models in R: An overview of the gnm package, 2007, http://eprints.ncrm.ac.uk/472/. Available in R via vignette("gnmOverview", package = "gnm").

See Also

gnm-package, for an extended range of models for contingency tables

mosaic for details on mosaic displays within the strucplot framework.

Examples

Run this code
example(mosaic.glm)

demo("mental-glm")

Run the code above in your browser using DataLab