Learn R Programming

vcdExtra (version 0.9.8)

'vcd' Extensions and Additions

Description

Provides additional data sets, methods and documentation to complement 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'. Additionally, methods are provided for comparing and visualizing lists of 'glm' and 'loglm' objects. This package is now a support package for the book Friendly, M. and Meyer, D. (2016, ISBN:978-1-4987-2583-5) 'Discrete Data Analysis with R: Visualization and Modeling Techniques for Categorical and Count Data'. Recent work adds colorized tables of frequencies to highlight patterns of association, association graphs to visualize conditional independence and a variety of new or improved statistical tests for categorical data analysis.

Copy Link

Version

Install

install.packages('vcdExtra')

Monthly Downloads

6,456

Version

0.9.8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Friendly

Last Published

August 21st, 2026

Functions in vcdExtra (0.9.8)

Donner

Survival in the Donner Party
CrabSatellites

Horseshoe Crab Mating
Draft1970table

USA 1970 Draft Lottery Table
Draft1970

USA 1970 Draft Lottery Data
Crossings

Crossings Interaction of Factors
Cormorants

Advertising Behavior by Males Cormorants
Detergent

Detergent Preference Data
Hauser79

Hauser (1979) Data on Social Mobility
Geissler

Geissler's Data on the Human Sex Ratio
Fungicide

Carcinogenic Effects of a Fungicide
HLtest

Hosmer-Lemeshow Goodness of Fit Test
Glass

British Social Mobility from Glass(1954)
GKgamma

Calculate Goodman-Kruskal Gamma for ordered tables
HospVisits

Hospital Visits Data
HairEyePlace

Hair Color and Eye Color in Caithness and Aberdeen
JobSat

Cross-classification of job satisfaction by income
Dyke

Sources of Knowledge of Cancer
Heckman

Labour Force Participation of Married Women 1967-1971
TV

TV Viewing Data
Mammograms

Mammogram Ratings
Kway

Fit All K-way Models in a GLM
Summarise

Brief Summary of Model Fit for glm and loglm Models
Mice

Mice Depletion Data
Hoyt

Minnesota High School Graduates
LRstats

Brief Summary of Model Fit for glm and loglm Models
Toxaemia

Toxaemia Symptoms in Pregnancy
as_array

Convert frequency, case, or table form data into an array
as_caseform

Convert frequency or table form into case form.
Gilby

Clothing and Intelligence Rating of Children
GSS

General Social Survey-- Sex and Party affiliation
WorkerSat

Worker Satisfaction Data
Titanicp

Passengers on the Titanic
Mental

Mental Impairment and Parents SES
Heart

Sex, Occupation and Heart Disease
HouseTasks

Household Tasks Performed by Husbands and Wives
ICU

ICU data set
Vietnam

Student Opinion about the Vietnam War
assoc_graph

Association Graph for a Loglinear Model
Yamaguchi87

Occupational Mobility in Three Countries
Mobility

Social Mobility data
PhdPubs

Publications of PhD Candidates
as_freqform

Convert any form (case or table form) into frequency form.
as_matrix

Convert frequency, case, or table form data into a matrix.
Reinis

Risk Factors for Coronary Heart Disease
ShakeWords

Shakespeare's Word Type Frequencies
as_table

Convert frequency or case form data into table form
Vote1980

Race and Politics in the 1980 Presidential Vote
get_model

Extract Model Formulas from Model Objects or Model Lists
breslow_day_test

Breslow-Day Test for Homogeneity of Odds Ratios
collapse_levels

Collapse the levels of a dataset
color_table

Smart Display of Frequency Tables with Colored Cell Backgrounds
drop1.loglm

Term-level tests and effect sizes for loglm models
blogits

Bivariate Logits and Log Odds Ratio
cutfac

Cut a Numeric Variable to a Factor
datasets

Information on Data Sets in Packages
expand.dft

Expand a frequency table to case form
collapse.table

Collapse Levels of a Table
dlogseries

The Logarithmic Series Distribution
logist_plot

Plot a fitted logistic regression with marginal distributions of the predictor
joint

Loglinear Model Utilities
mcaplot

Simple and enhanced plot of MCA solutions
labeling_points

Labeling Function for Mosaic Displays Using Points
knit_include

Include an HTML-renderable object in any knitr output format
modFit

Brief Summary of Model Fit for a glm or loglm Object
logLik.loglm

Log-Likelihood of a loglm Object
mosaic.glm

Mosaic plots for fitted generalized linear and generalized nonlinear models
glmlist

Create a Model List Object
seq_loglm

Sequential Loglinear Models for an N-way Table
pairs_diagonal_mosaic

Diagonal Panel Function for Pairs Plots of Contingency Tables
mosaic.glmlist

Mosaic Displays for glmlist and loglmlist Objects
plot.assoc_graph

Plot an Association Graph
mosaic3d

3D Mosaic Plots
update.xtabs

Update method for a xtabs object
split3d

Subdivide a 3D Object
vcdExtra-deprecated

Deprecated functions in vcdExtra
seq_mosaic

Sequential Mosaics and Strucplots for an N-way Table
print.Kappa

Print Kappa
zero.test

Score test for zero inflation in Poisson data
woolf_test

Woolf Test for Homogeneity of Odds Ratios
vcdExtra-package

Extensions and additions to vcd: Visualizing Categorical Data
Cancer

Survival of Breast Cancer Patients
Bartlett

Bartlett Data on Plum Root Cuttings
Asbestos

Effect of Exposure to Asbestos
CyclingDeaths

London Cycling Deaths
Alligator

Alligator Food Choice
Depends

Dependencies of R Packages
Burt

Burt (1950) Data on Hair, Eyes, Head and Stature
Abortion

Abortion Opinion Data
Accident

Traffic Accident Victims in France in 1958
CMHtest

Generalized Cochran-Mantel-Haenszel Tests
DaytonSurvey

Dayton Student Survey on Substance Use
AirCrash

Air Crash Data
Caesar

Risk Factors for Infection in Caesarian Births