Skip to content

Commit

Permalink
fix saved output to accommodate old release
Browse files Browse the repository at this point in the history
  • Loading branch information
hturner committed Aug 26, 2023
1 parent 2a2971e commit 7cf335d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 18 deletions.
58 changes: 40 additions & 18 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,23 +1,45 @@
Package: gnm
Title: Generalized Nonlinear Models
Version: 1.1-3
Authors@R: c(person("Heather", "Turner",
email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1256-3375")),
person("David", "Firth", role = "aut",
comment = c(ORCID = "0000-0003-0302-2312")),
person("Brian", "Ripley", role = "ctb"),
person("Bill", "Venables", role = "ctb"),
person(c("Douglas", "M."), "Bates", role = "ctb"),
person("Martin", "Maechler", role = "ctb",
comment = c(ORCID = "0000-0002-8685-9910")))
Description: Functions to specify and fit generalized nonlinear models, including models with multiplicative interaction terms such as the UNIDIFF model from sociology and the AMMI model from crop science, and many others. Over-parameterized representations of models are used throughout; functions are provided for inference on estimable parameter combinations, as well as standard methods for diagnostics etc.
Version: 1.1-4
Authors@R: c(
person("Heather", "Turner", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1256-3375")),
person("David", "Firth", role = "aut",
comment = c(ORCID = "0000-0003-0302-2312")),
person("Brian", "Ripley", role = "ctb"),
person("Bill", "Venables", role = "ctb"),
person(c("Douglas", "M."), "Bates", role = "ctb"),
person("Martin", "Maechler", role = "ctb",
comment = c(ORCID = "0000-0002-8685-9910"))
)
Description: Functions to specify and fit generalized nonlinear models,
including models with multiplicative interaction terms such as the
UNIDIFF model from sociology and the AMMI model from crop science, and
many others. Over-parameterized representations of models are used
throughout; functions are provided for inference on estimable
parameter combinations, as well as standard methods for diagnostics
etc.
License: GPL-2 | GPL-3
URL: https://github.com/hturner/gnm
BugReports: https://github.com/hturner/gnm/issues
License: GPL-2 | GPL-3
Depends: R (>= 3.0.0)
Imports: graphics, grDevices, MASS, Matrix, methods, nnet, qvcalc (>= 0.8-3),
relimp, stats, utils
Suggests: logmult, testthat, vcdExtra
LazyData: yes
Depends:
R (>= 3.0.0)
Imports:
graphics,
grDevices,
MASS,
Matrix,
methods,
nnet,
qvcalc (>= 0.8-3),
relimp,
stats,
utils
Suggests:
logmult,
testthat (>= 3.0.0),
vcdExtra
Encoding: UTF-8
Language: en-GB
LazyData: yes
Config/testthat/edition: 3
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes in gnm 1.1-4
====================

* Minor fix to test to accommodate old R release.

Changes in gnm 1.1-3
====================

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-doubleUnidiff.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ test_that("double unidiff model as expected for cautres data", {
Mult(Exp(election), religion:vote) +
Mult(Exp(election), class:vote),
family = poisson, data = cautres, verbose = FALSE)
doubleUnidiff$family$dispersion <- 1
expect_equal(round(deviance(doubleUnidiff), 2), 133.04)
expect_known_value(doubleUnidiff,
file = test_path("outputs/doubleUnidiff.rds"))
Expand Down

0 comments on commit 7cf335d

Please sign in to comment.