Changelog
Source:NEWS.md
sure 0.3.0
Added
- Added direct exact Gumbel and multivariate normal samplers for multinomial residuals.
- Added S3 methods
resids.multinomandresids.matrixfor multinomial and general ML classifiers. - Added latent surrogate residual method for general, non-binary vanilla GLMs.
- Added case weights support (
prior.weights) for Gaussian and Gamma GLMs. - Added a new public function
sim_data()to dynamically simulate datasets representing different model misspecifications. - Added a Quick start section to the README,
codecov.yml, and a curated_pkgdown.ymlreference index.
Changed
- Migrated residual diagnostic plots from
ggplot2/gridExtratotinyplotvia standard S3plot()methods. - Simplified
plot.resid()arguments to leverage standard base R graphical parameters (col,pch,cex, etc.). - Refactored internal utilities from a single
utils.Rfile into separate generic-specific files. - Abstracted duplicate bootstrap replication loops into a single shared helper
run_bootstrap_reps(). - Upgraded minimum R dependency version from
3.1to4.0.0in DESCRIPTION. - Adopted the devel/main branch model;
develis now the default development branch. - Consolidated
generate_surrogate()/generate_residuals()(previously ~90% duplicated) into a single code path. - Deduplicated
get_bounds.orm/ncat.orm/get_mean_response.orm(now aliased to theirlrmequivalents) and collapsedget_distribution_function()/get_quantile_function()from 12 S3 methods into two functions over shared lookup tables. - Converted remaining legacy Rd markup to markdown roxygen and modernized the package-doc file to the
"_PACKAGE"sentinel. - Rewrote the stale
DESCRIPTIONparagraph describing the removed ggplot2-basedautoplot().
Deprecated
- Deprecated the
ggplot2-basedautoplot()methods in favor of standardplot()S3 methods.
Removed
- Removed
ggplot2andgridExtrapackage dependencies fromImports. - Removed
testthattesting framework and rebuilt the entire test suite usingtinytest. - Removed the redundant
slowtests/directory as its test cases are fully covered by the package vignette and the unit test suite. - Removed the static datasets
df1throughdf5and their documentation, replacing them completely withsim_data(). - Removed the unused
mgcvSuggests entry, the staleLazyDatafield, thepr-commands.yamlworkflow, and a stray trackedvignettes/sure.Rbuild artifact.
Fixed
- Fixed a bug in
gof()validation checking due to operator precedence. - Fixed a bug in the jittering methods where category interval mapping caused binary successes to collapse.
- Fixed
nsim > 1bootstrap crashes on model classes that do not supportnobs(). - Fixed link function name matching for
vglmmodels containing"link"suffixes. - Fixed dimension mismatch crashes in
clmandpolrmodels with collinear (aliased) predictors. - Fixed
tinytest::at_home()gating:test_package()’s own default silently skipped roughly 63% of the test suite (104 of 164 expectations) in every environment, including CI, regardless of any environment variable. - Fixed a stale Rd cross-reference to the undeclared
truncdistpackage. - Fixed missing
stats@importFromentries (pgamma,pnbinom,ppois) flagged byR CMD check. - Fixed a leftover vignette placeholder title.
sure 0.2.2
Incorporated pkgdown website.
Added
surevignetteincorporated autoplot methods for glm, lrm, orm, polr, vglm
Specifying
method = "latent"now works for binomial GLMs (27).Specifying
method = "jittering"now issues a warning (at least until it has been fully tested).
sure 0.2.0
CRAN release: 2017-09-19
New function
surrogatefor returning the surrogate response values used in calculating the surrogate-based residuals. The surrogate response values can be useful for checking the proportionality assumption of fitted cumulative link models, among other things.Jittering (on both the probability scale and the response scale) is now available for fitted cumulative link models based on packages
MASS,ordinal,rms, andVGAM(#18).Added support for vector generalized additive models from the
VGAMpackage (i.e., objects of class"vgam").New data sets
df4anddf5for illustrating various uses of the surrogate residual for diagnostics an ordinal regression models.