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
.glm()
and related, generalized nonlinear models fitted
with gnm()
in the gnm-package
package.
A related purpose is to fill in some holes in the analysis of
categorical data in R, not provided in base R, the The method mosaic.glm
extends the mosaic.loglm
method in the gnm-package
package,
including models for square tables and models with multiplicative associations.
mosaic3d
introduces a 3D generalization of mosaic displays using the
In addition, there are several new data sets, a tutorial 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 data(package="vcdExtra")
for a
complete list, or datasets(package="vcdExtra")
for an annotated one showing the class
and
dim
for each data set.
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,
vignette("gnmOverview", package = "gnm")
.
gnm-package
, for an extended range of models for contingency tablesmosaic
for details on mosaic displays within the strucplot framework.
example(mosaic.glm)
demo("mental-glm")
Run the code above in your browser using DataLab