Skip to contents

Version 0.9.9

CRAN release: 2026-11-18

  • color_table() with model = put the residuals into the wrong cells of multi-way tables with more than one row or column variable, because they were reshaped in the order of the original array rather than the displayed layout. Residuals are now matched to cells by factor names, for loglm and glm models, and for table, structable and ftable input; a model whose factors don’t match the table now gives an error.

  • color_table()’s expected = now also accepts an array over the table’s factors (in any order of dimensions), not only a matrix in the flattened layout.

  • color_table() now reports its shading note with message() instead of cat(), so it can be silenced with suppressMessages() or message: false, and only when the note is not already shown in the table (legend = FALSE). The “Re-fitting to get frequencies and fitted values” line from its internal independence model no longer appears.

  • logist_plot() and its convenience wrappers now use the eight distinct colours of the Okabe-Ito palette by default. Plots with more than eight observed groups must supply group.colors.

  • woolf_test() now returns LOR and LOR_se, the per-stratum log odds ratio and its standard error, shaped as an array over the stratifying dimensions (e.g., an R x C matrix for a 4-way table) rather than a flat vector, with dimnames carried over from the input. This avoids having to recompute them from scratch for further analysis of the log odds ratios.

  • Added woolf_twoway(), which decomposes the stratum log odds ratios of a 2 x 2 x R x C table into additive row and column effects, following Tukey’s two-way fit as implemented by the twoway package. Since twoway::twoway() has no weight argument, woolf_twoway() fits the additive model directly by weighted least squares using the same Woolf inverse-variance weights as woolf_test() (weighted = TRUE, the default), or via twoway::twoway() directly for the ordinary unweighted mean-polish (weighted = FALSE). The result is an object of class "twoway", so twoway’s own print()/plot() methods (which = "fit" or "diagnose") work on it unchanged.

  • Links to papers formerly hosted at datavis.ca now point to https://friendly.github.io/papers/ or to DOIs.

Version 0.9.8

CRAN release: 2026-08-21

This is a significant release, with a number of new features, notably plotting logistic regression models with display of marginal distributions of x, and term-level tests for loglinear models.

  • Summarise() is now formally deprecated (.Deprecated("LRstats")), in favor of LRstats(), which provides the same brief model-fit comparison. Summarise()’s capitalized name reads as an easy-to-mistype near-collision with dplyr::summarise(), which vcdExtra also imports internally; LRstats() has been the recommended replacement since 0.6-5 but was never actually wired up to warn. See ?vcdExtra-deprecated.

  • Added logist_plot() for plotting a glm(y ~ x, family = binomial) fit for a single quantitative predictor together with a representation of the marginal distribution of x within each response group – mirrored histograms, filled density estimates, or jittered points – as suggested by Smart et al. (2004). Supports vector, data frame, and formula calling conventions; an optional group= for grouped fits and marginals with per-group colours; and fit.args=/marginal.args=/marginal.height= for layer-level customization beyond the fit.color=/marginal.color= convenience arguments. logist_hist(), logist_point(), and logist_density() are convenience wrappers with marginal= fixed to "hist"/"points"/"density". Work by Gavin Klorfine.

  • Fixed bug in CMHtest3() (the internal overall = TRUE helper) which suppressed Df and Prob (p-value) for the overall population results whenever types was not the full default set of four (#2, reported by @bill-raynor and @imazubi; fix by @danielinteractive in #26).

  • Added drop1.loglm(), LRanova(), and assoc_strength() for term-level analysis of loglm models. drop1.loglm() (registered as an S3 method for stats::drop1(), and also directly callable by name) performs single-term deletion tests for a model’s generating class, refitting via update() and reporting both LR (G^2) and Pearson (X^2) statistics per term.

  • LRanova() wraps it with a partial R^2 effect-size column relative to a (nesting-checked) baseline model.

  • assoc_strength() wraps it with a partial Cramer’s V / Cohen’s w effect-size column, generalized to terms of any order. The fitted models underlying each test are attached as a loglmlist (attr(., "models")), reusable directly with mosaic(), LRstats(), and get_models() without refitting.

Version 0.9.7

CRAN release: 2026-08-03

This is a significant release, with a number of new features

  • color_table() now displays multiple row variables as separate stub columns (e.g. “Class”, “Sex”) instead of concatenated labels like “1st_Male”, using gt’s multi-column stub support. Mirrors the existing column-spanner display for multiple column variables, and the two can be combined in the same table.
  • Added more worked examples to the Mental dataset documentation
  • General package clean-up: removed stale pre-roxygen and superseded dev/extra files, and reorganized color_table()/assoc_graph() development notes into their own subfolders
  • Now reference new work on tidy methods (as_*() methods, collapse_levels(), …) in the tidyCats vignette
  • Added breslow_day_test() for the Breslow-Day test of homogeneity of odds ratios across strata in 2x2xk tables, generalized to handle tables of any dimensionality, with an optional Tarone correction and a decompose option (for 2x2xRxC tables) giving a woolf_test()-style row/column/residual decomposition of the overall test
  • Added a layout = "2x2" display option to print.CMHtest(), reorganizing the four CMH statistics (cor, rmeans, cmeans, general) into a 2x2 table crossing how the row and column variables are each treated (general/nominal vs. ordered/scored). Falls back to the existing flat table display, with a warning, when not all four statistics are available

Version 0.9.6

CRAN release: 2026-06-07

This is a cumulative release of a number of small enhancements to the package since the last CRAN version

Version 0.9.5

This is a major release of the package, completing work on a sizable collection of tidy tools for manipulating categorical data in various forms

  • Added a general collapse_levels() function that can collapse levels of variables belonging to data sets of any form. [GK]
  • Added as_matrix() to the set of as_*() conversion functions. [GK]
  • Added prop arguments to applicable as_*() conversion functions to easily convert counts to proportions (either relative to the grand total count or to specified margins). [GK]
  • Added vignette on tidy operations (convert, collapsing) [GK]
  • Gavin Klorfine (@gklorfine) becomes a package author

Version 0.9.4

  • suppressWarnings() from ca:mcja() in mcaplot() examples

Version 0.9.3

CRAN release: 2026-03-18

This bundle brings quite a few enhancements, improvements in documentation and bug fixes

  • Added tidy conversion functions: as_array(), as_caseform(), as_freqform, as_table() PR #22 [Thx: Gavin Klorfine]
  • Fixed bug in mcaplot() coming from `ca::cacoords(): “non-conformable arguments”
  • Expanded documentation of color_table() to give better advice on how to use this in Rmd or qmd documents.
  • Added: knitr_include() as a general solution to using gt, DT, plotly, … outputs in non-HTML documents.
  • Added pairs_diagonal_mosaic(), overriding the {vcd} version to give more flexibility in printing the cell values in the diagonal cells. PR #24 [Thx: Gavin Klorfine]

Version 0.9.2

  • Added a label = c("name", "formula") argument to LRstats() to provide for labeling models by their model formulas in the output using get_models().
  • Handle list (…) of models with formula labels more flexibly in LRstats()
  • Document get_model() and get_models() together
  • Added `assoc_graph() and a plot method for association graphs of loglinear models.
  • Added edge weights to assoc_graph() representing partial G^2 or Cramer’s V

Version 0.9.1 (2026-02-08)

CRAN release: 2026-02-09

This is a major release of the package, adding facility to show observations in mosaic plots as jittered points and a new visualization method based on background shading of frequency tables.

  • Added labeling_points() for mosaic displays to show observed or expected frequencies as random points in the tiles
  • Changed defaults for clip and margin in labeling_points() to be more sensible [Thx: Achim Zeileis]
  • Added color_table() to display frequency tables with color shaded backgrounds to show patterns
  • Refactored color_table() as S3 methods, adding support for frequency data frames. Added file output, other formatting options
  • Print message for color_table() giving the model fit statistics.
  • Now provide color_table(values =) to display either the frequencies (default) or residuals in the table.
  • Add legend = "note" to include a table note regarding what is shown.
  • Added Reinis data as an example of a higher-way table, 2^6
  • Make the default label for seq_loglm() models reflect the model type
  • Added get_models() to extract model formulas from loglmlist and glmlist objects
  • Added get_model() to do the same for loglm() and glm() objects
  • Fixed bug in get_models() where the abbrev argument caused an error

Version 0.9.0 (2026-01-17)

CRAN release: 2026-01-21

This is a major release of the package, adding structure to dataset examples and introducing an new extension Woolf’s test for homogeneity of odds ratios.

  • Begin to categorize the datasets in the package with @concept tags
  • Begin to flesh out more general conception of CDA
  • datasets(): added ndim arg; package=“vcdExtra” default
  • Added a tidyCat hex logo
  • Generalized vcd::woolf_test() to handle strata better, with special handling for 2 x 2 x R x C case.
  • Completed extension of vcd::woolf_test() to fully handle R x C strata, with tests for rows/cols/residuals
  • Added GH actions R-CMD-check & pkgdown
  • Now depends R (>= 4.1.0) due to use of native pipe |>
  • Fixed some broken URLs in R/data.R

Version 0.8.7 (2025-12-10)

CRAN release: 2025-12-11

This is a major release of the package, fixing bugs and revising documentation

o Added tests for CMHtest() PR #13 [Thx: Daniel Sabanes Bove] o Automatically omit strata with a single observation in CMHtest() because they do not contribute to the test statistics o Use the generalized Moore-Penrose inverse from MASS in CMHtest() such that it can work when the variance matrix is singular. o Converted the package to use roxygen documentation via {rd2roxygen}. UGH! o Added CrabSatellites data from {countreg} b/c that’s still not available on CRAN o Moved grid from Depends: to Imports: o Now use markdown in package documentation for easier maintenance, via {roxygen2md}

Version 0.8-6 (2025-07-23)

CRAN release: 2025-07-24

This is a minor release to satisfy the CRAN gods who like all crossref links to be correct.

o Fixed CRAN nits re crossrefs o Update issues link o Update README o Fixed Winbuilder notes re: Rd links to data sources

Version 0.8-5 (2023-08-19)

CRAN release: 2023-08-22

  • Fix CRAN nit re vcdExtra-package.Rd
  • Fix moved URL - http: -> https:
  • Fix xrefs in vignettes
  • More spellcheck
  • Fixed one more NOTE re: AirCrash.Rd for a URL

Version 0.8-4 (2023-04-12)

CRAN release: 2023-04-16

  • Imports: tidyr must depend on (>= 1.3.0) for one use in a vignette.
  • Enhanced the vignette, “Creating and manipulating frequency tables”, vignettes/creating.Rmd
  • Created a new vignette, “Mobility tables”, with extensive examples of models and graphs for square mobility tables.

Version 0.8-3 (2023-02-16)

CRAN release: 2023-03-04

  • All datasets now classified with tags by method of analysis. These can be found using help.search(pattern, field="concept")
  • Added a vignette, datasets.Rmd showing all datasets classified by method tags. Links only work in the pkgdown site.
  • Added Asbestos data

Version 0.8-2 (2023-01-19)

CRAN release: 2023-01-29

This is a major enhancement release of the vcdExtra package, focusing on documentation and examples.

  • added HouseTasks data set, illustrating permutation of row / col variables
  • package now depends on R (>= 3.5.0) per CRAN nit
  • add Suggests: seriation to illustrate CA re-ordering of rows/cols based on correspondence analysis
  • all .Rd files reformatted and many examples extended.
  • the vignette mosaic.Rmd on mosaic displays has been extensively revised with examples for square tables and permutation of row / column variables.
  • begin to classify datasets with \concept{} tags
  • Added a new demo-housing.Rmd vignette, using content from demo/housing.R.

Version 0.8-1 (2022-04-22)

  • rename vignettes to be in order

Version 0.8-0 (2022-04-20)

CRAN release: 2022-04-21

  • Fixed warning from expand.dft() re type.convert
  • Old .Rnw vignettes converted to .Rmd
  • Fixed two problems detected in the initial submission.

Version 0.7-6 (2022-02-12)

CRAN release: 2022-02-14

  • Fix some issues with CMHtest() types argument #PR11 [Thx: ShuguangSun, Matt Kumar]
  • Fix some Winbuilder URL nits; extensive spell checking

Version 0.7-5 (2020-12-25)

CRAN release: 2021-01-25

Version 0.7-4 (2019-09-25)

  • Fix datasets() to work with packages not using LazyData #PR7 [Thx: Duncan Murdoch]
  • Bump package Version

Version 0.7-3 (2018-06-04)

  • fix Version number for gnm in DESCRIPTION
  • fix expand.dft and expand.table to work with tibbles [Thx: Duncan Murdoch]
  • vcdExtra gets a hex sticker

Version 0.7-1 (2017-09-28)

CRAN release: 2017-09-29

Version 0.7-0 (2016-01-27)

CRAN release: 2016-02-25

  • Added Glass data
  • introduce links and references to DDAR
  • added mcaplot() to plot MCA solutions in DDAR style
  • added update.xtabs() method
  • updated vignette to refer to DDAR

Version 0.6-12 (2015-10-06)

CRAN release: 2015-12-23

  • Added Burt data
  • Fixed examples/vignette for ggplot_2.0.0

Version 0.6-11 (2015-09-14)

CRAN release: 2015-09-17

  • bump pkg Version for CRAN

Version 0.6-10 (2015-07-27)

  • Added HospVisits data

Version 0.6-9 (2015-06-11)

CRAN release: 2015-07-11

  • Added Mice data
  • Removed uses of summarise() and Summarise() from demos and examples, in preparation for deprecating them.
  • summarise() is now deprecated
  • Now use importsFrom() for all functions from recommended packages

Version 0.6-8 (2015-04-15)

CRAN release: 2015-04-16

  • Fixed Title: and Description: for CRAN

Version 0.6-7 (2015-04-02)

  • Removed loddsratio (now in vcd) (rev 252)
  • Removed print.Kappa (now in vcd) (rev 253)
  • Fixed bug in CMHtest(): rmeans and cmeans labels were reversed (rev 254)
  • Fixed error in Fungicide.Rd, now that we require vcd_1.3-3 (rev 254)
  • Added WorkerSat data - 2 x 2 x 2
  • Added AirCrash data

Version 0.6-6 (2015-02-04)

  • Minor doc changes

Version 0.6-5 (2014-11-07)

CRAN release: 2015-01-03

  • Added Cormorants data (fixed to latest)
  • Added LRstats(), to replace Summarise. Older summarise() and Summarise() will eventually be deprecated.
  • Now Suggests: AER for NMES1988 data
  • collapse.table() now works with array objects

Version 0.6-3 (2014-10-27)

CRAN release: 2014-11-01

  • Fixed bug in logLik.loglm when the data contain zero frequencies (rev 228)
  • Made Summarise generic, adding a method for “glmlist” objects (rev 230)
  • Added a coef() method for “glmlist” objects (thx: John Fox)
  • Added a Summarise.loglmlist method (rev 232)
  • Replaced all documentation uses of summarise() with Summarise() (rev 233)
  • Added cutfac(), a convenience wrapper for cut() (rev 234)
  • Now use rgl:: in all mosaic3d functions

Version 0.6-2 (2014-06-30)

  • added Summarise, to replace summarise
  • Added HairEyePlace data - 4 x 5 x 2, Caithness and Aberdeen hair/eye color (rev 223)
  • Added PhdPubs data from Long (1997) - publications by PhD candidates
  • Allow Summarise to work with models w/o a deviance() function
  • Fixed bug in Summarise wrt degrees of freedom

Version 0.6-1 (2014-04-14)

CRAN release: 2014-06-10

  • Added ICU data
  • Added Toxaemia data - multivariate response contingency table (rev 209)
  • Added Vietnam data - 2 x 5 x 4 frequency table (rev 210)
  • Added logLik.loglm to allow use of AIC() and BIC() for loglm models (rev 212)
  • Fixed loddsratio.Rd to work with revised vcd::CoalMiners data (rev 212)
  • Added blogits for bivariate binary response data
  • Added Vote1980 data (rev 214)

Version 0.6-0 (2014-03-07)

CRAN release: 2014-03-08

  • Removed Authors: in DESCRIPTION, bumped Version

Version 0.5-12 (2013-12-16)

  • Added ShakeWords data set- word frequency counts from Shakespeare (rev 188)
  • Added Geissler data– all family sizes for Saxony sex composition data (rev 190)
  • Added logseries functions for the logarithmic series distribution (rev 191)
  • Added Depends data – dependencies of r packages (rev 192)
  • Fixed buglet in seq_loglm() not respecting arrays
  • Added seq_mosaic() (rev 194)
  • Added CyclingDeaths data (rev 196)
  • mosaic3d() gets an interpolate= option to control shading levels (rev 197)
  • Fixed bug in seq_mosaic, thx to David Meyer (rev 200)
  • Fixed bug in seq_loglm() when marginals != 1:nf

Version 0.5-11 (2013-07-01)

CRAN release: 2013-09-16

  • Added mosaic.glmlist to plot mosaics (or other strucplots) for some or all models in a glmlist (rev 169)
  • Added loglin-utilities.R, containing a suite of functions to provide a more conceptual way to specify loglinear models by type (‘joint’, ‘conditional’, ‘mutual’, ‘markov’, ‘saturated’) (rev 171)
  • Added mosaic.loglmlist, similar to mosaic.glmlist for models fit using MASS::loglm (rev 173)
  • Both mosaic.glmlist and mosaic.glmlist get an explicit panel=argument; both get some more sensible default default arguments (rev 175)
  • Added seq_loglm to fit sequential loglm models to marginal subtables, giving a loglmlist result (rev 176)
  • Added Accident data (rev 178); fleshed out Accident examples (rev 180)
  • Fixed use of ::: for R 3.0.1 (rev 179)
  • Fixed various problems related to use of MASS:loglm (rev 181-183)
  • Added Titanicp to datasets (rev 185)

Version 0.5-8 (2013-03-06)

  • Revised vcd-tutorial showing some examples of plyr; added a section on RC models
  • Added Donner data with example of ggplot2 plot for a binomial glm()
  • Added vcd-tutorial section using ggplot2 for Donner data
  • Enhanced datasets() to provide a maxTitle argument (rev 153)
  • Added doubledecker plots to Dyke.Rd (rev 156)
  • Added Draft1970table and Draft1970 data sets (rev 158)
  • Added example of doubledecker plots to vcd-tutorial vignette (rev 164)

Version 0.5-7 (2013-03-01)

CRAN release: 2013-03-05

  • Completed CMHtest methods, adding overall tests across strata in a general way
  • CMHtest now gets an S3 generic with a formula interface
  • print Kappa gets digits= and CI= arguments

Version 0.5-6 (2012-11-30)

CRAN release: 2013-02-28

  • Added Hosmer Lemeshow and HLtest methods, including plotting via vcd::rootogram()
  • Added CMHtest for general Cochran-Mantel-Haenszel tests
  • Revised vcd-tutorial vignette, adding a section on CMH tests; removed dependence on Z.cls

Version 0.5-3 (2012-03-07)

CRAN release: 2012-05-08

  • Added Mammograms data (4x4, ordered factors, agreement)
  • Extended mosaic.glm examples
  • Added Alligator data (4x2x2x5, in frequency form)
  • Added DaytonSurvey data (5-way, 2x2x2x2x2 in frequency form)
  • Extended vcd-tutorial vignette with a section on collapsing over factors
  • Removed aperm.* now that aperm.table is in base R

Version 0.5-2 (2010-11-28)

CRAN release: 2011-03-24

  • Added loddsratio and related methods for log odds ratios, generalizing vcd::oddsratio from 2 x 2 (x strata) tables to R x C (x strata) tables
  • Added as.matrix.loddsratio, as.array.loddsratio methods
  • Added some simple plot examples to example(loddsratio), anticipating a plot method
  • Added data(Fungicide), a 2 x 2 x 2 x 2 table
  • Renamed summarize() and related methods to summarise() to avoid conflict with plyr.
  • Addition to vcd-tutorial vignette on use of aperm() with table objects
  • Updated demo(yamaguchi-xie) to correct row/col nomenclature and add plot of BIC
  • Added aperm() S3 generic to handle table objects
  • Moved tv.dat to inst/doc/extdata to avoid warnings in R 2.12+

Version 0.5-1 (2010-09-17)

CRAN release: 2010-11-29

  • Added Yamaguchi87 data (5x5x3 three-way mobility table in frequency form)
  • Added demo(yamaguchi-xie) illustrating fitting and visualization of the models of homogeneous and log multiplicative layer effects fit in Xie (1992, Table 1)
  • Added BIC to summarize() and friends
  • Added Hauser79 data (two-way mobility table), plus some examples from Powers and Xie (2008)
  • Added Crossings() to construct interactions for Goodman 1972 crossings model.
  • Added datasets() to list datasets in packages
  • Extended description and examples of Kway()
  • Added meanResiduals() and extended mosaic.glm() (Heather Turner)
  • summarize() gets a sortby argument for glmlist and loglmlist objects

Version 0.5-0 (2010-04-28)

CRAN release: 2010-04-16

  • Fleshed out mosaic3d, allowing display of observed or expected, internally calculated or externally supplied residuals, specifying the initial 3D shape, etc. This completes the ‘top-level’ work on mosaic3d(), borrowing code from vcd::strucplot.
  • Added initial handling for zero cells in the table to mosaic3d().
  • Added center3d() for finding the mean coordinates of shape3d objects.
  • Added demo(mosaic-hec) comparing 2D and 3D mosaics for HairEyeColor data
  • Gave mosaic3d a label_edge argument, allowing labels for dimensions at minima or maxima
  • Made mosaic3d object oriented, giving it a loglm method
  • Added Kway(), fitting all 0-way, 1-way, 2-way, … k-way models in a glm

Version 0.4-3 (2010-03-25)

  • Added demo(mosaic3d-demo), a proof-of-concept for doing 3D mosaic displays
  • Added mosaic3d(), an initial basic Version.
  • Factored out split3d() and gave it S3 methods

Version 0.4-2 (2010-03-09)

CRAN release: 2010-03-18

  • Revised vignette(“vcd-tutorial”): added some hints for mosaic(), corrected stuff regarding prior limitations of mosaic.glm()
  • Added demo(Wong3-1): three-way table, with models of conditional association
  • Added Suggest: effects for effects plots of glm(), multinom() and polr() models
  • Added demo(housing): visualize models fit in example(housing, package=“MASS”) using mosaic() and effect plots.
  • Updated demo(Wong2-3): added model comparison plots, glmlist processing
  • Added Suggest: VGAM
  • Extended package description in vcdExtra-package.Rd
  • Added glmlist() to facilitate processing, extraction, plotting, etc. of a collection of glm() models
  • Added loglmlist(), for collections of loglm() objects
  • Added summarize methods for glm, glmlist, loglm and loglmlist objects

Version 0.4-1 (2010-02-21)

CRAN release: 2010-03-07

  • Added example(Caesar), illustrating structural zeros
  • Re-named Heckman variables to e1971, …, e1968 (errors from loglm); began example(Heckman)
  • Added example(Detergent), example(Dyke)
  • Fixed bug with mosaic.glm when data in global environment (Heather Turner)
  • Added sieve.glm and assoc.glm methods (MF)
  • Added modFit.glm and modFit.loglm
  • Added demo(Wong2-3)

Version 0.4-0 (2010-02-23)

CRAN release: 2010-02-28

  • Added new datasets: data/{Abortion, Bartlett, Caesar, Cancer, Detergent, Dyke, Gilby, Heart, Heckman, Hoyt, Mobility} from mosdata.sas via md2r.sas converter.
  • Fixed small documentation warnings
  • Switched inst/CHANGES to NEWS

Version 0.3-6 (2009-04-21)

  • Added Depends: gnm
  • Added demo/{mental-glm, ucb-glm, vision-quasi}
  • Added demo/{occStatus,yaish-unidiff}
  • Initial release to CRAN

Version 0.3-5 (2009-3-6)

  • mosaic.glm now uses object$data if available

Version 0.3-4 (2009-2-11)

  • Fixed bugs in mosaic.glm, mosaic.gnm in models with terms like Diag(dest, origin) that get included in x$xlevels

Version 0.3-3 (2009-2-10)

  • Fixed bugs in mosaic.gnm
  • Fixed print.GKgamma
  • Added example of GKgamma to vcd-tutorial

Version 0.3-2 (2009-2-8)

  • Added more examples to mosaic.glm.Rd

Version 0.3-0 (2009-2-6)

  • Fixed bugs in mosaic.glm and mosaic.gnm

Version 0.2 (2009-2-1)

  • Added vcd-tutorial vignette

Version 0.1 (2009-1-26)

  • Initial Version on R-Forge.