Repository navigation
This release, submitted to CRAN as vcdExtra 0.9.9, collects all changes since the last GitHub release (v0.9.3), including the 0.9.7 CRAN release.
Version 0.9.9
-
color_table()withmodel =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, forloglmandglmmodels, and fortable,structableandftable
input; a model whose factors don't match the table now gives an error. -
color_table()'sexpected =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 withmessage()instead ofcat(), so it can
be silenced withsuppressMessages()ormessage: 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 returnsLORandLOR_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 thetwowaypackage. Sincetwoway::twoway()has noweightargument,
woolf_twoway()fits the additive model directly by weighted least squares using the same
Woolf inverse-variance weights aswoolf_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", sotwoway's ownprint()/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
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 ofLRstats(), which provides the same brief model-fit comparison.
Summarise()'s capitalized name reads as an easy-to-mistype near-collision
withdplyr::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 aglm(y ~ x, family = binomial)fit for a single
quantitative predictor together with a representation of the marginal distribution ofx
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 optionalgroup=for grouped fits and marginals with per-group
colours; andfit.args=/marginal.args=/marginal.height=for layer-level customization
beyond thefit.color=/marginal.color=convenience arguments.logist_hist(),
logist_point(), andlogist_density()are convenience wrappers withmarginal=fixed to
"hist"/"points"/"density". Work by Gavin Klorfine. -
Fixed bug in
CMHtest3()(the internaloverall = TRUEhelper) which
suppressedDfandProb(p-value) for the overall population results
whenevertypeswas not the full default set of four (#2, reported by
@bill-raynor and @imazubi; fix by @danielinteractive in #26). -
Added
drop1.loglm(),LRanova(), andassoc_strength()for term-level analysis ofloglm
models.drop1.loglm()(registered as an S3 method forstats::drop1(), and also directly
callable by name) performs single-term deletion tests for a model's generating class, refitting
viaupdate()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 aloglmlist(attr(., "models")), reusable directly withmosaic(),
LRstats(), andget_models()without refitting.
Version 0.9.7
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", usinggt'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
Mentaldataset documentation - General package clean-up: removed stale pre-roxygen and superseded
dev/extrafiles, and
reorganizedcolor_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 adecomposeoption (for 2x2xRxC tables) giving awoolf_test()-style
row/column/residual decomposition of the overall test - Added a
layout = "2x2"display option toprint.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
This is a cumulative release of a number of small enhancements to the package since the last CRAN version
- Fix @Aliases for roxygen 8.0.0
- Make some
color_table()examples visible in documentation
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
proparguments 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()inmcaplot()examples