Skip to content

Commit 5a38f59

Browse files
committed
submitted version 0.2-5
1 parent 7b39d0f commit 5a38f59

File tree

4 files changed

+33
-34
lines changed

4 files changed

+33
-34
lines changed

DESCRIPTION

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
Package: PlackettLuce
22
Type: Package
33
Title: Plackett-Luce Models for Rankings
4-
Version: 0.2-4
5-
Authors@R: c(person("Heather", "Turner",
4+
Version: 0.2-5
5+
Authors@R: c(person("Heather", "Turner",
66
email = "[email protected]", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-1256-3375")),
88
person("Ioannis", "Kosmidis", role = "aut",
9-
comment = c(ORCID = "0000-0003-1556-0302")),
10-
person("David", "Firth", role = "aut",
11-
comment = c(ORCID = "0000-0003-0302-2312")),
9+
comment = c(ORCID = "0000-0003-1556-0302")),
10+
person("David", "Firth", role = "aut",
11+
comment = c(ORCID = "0000-0003-0302-2312")),
1212
person("Jacob", "van Etten", role = "ctb",
1313
comment = c(ORCID = "0000-0001-7554-2558")))
1414
URL: https://hturner.github.io/PlackettLuce/
1515
BugReports: https://github.com/hturner/PlackettLuce/issues
1616
Description: Functions to prepare rankings data and fit the Plackett-Luce model
17-
jointly attributed to Plackett (1975) <doi:10.2307/2346567> and Luce
18-
(1959, ISBN:0486441369). The standard Plackett-Luce model is generalized
19-
to accommodate ties of any order in the ranking. Partial rankings, in which
17+
jointly attributed to Plackett (1975) <doi:10.2307/2346567> and Luce
18+
(1959, ISBN:0486441369). The standard Plackett-Luce model is generalized
19+
to accommodate ties of any order in the ranking. Partial rankings, in which
2020
only a subset of items are ranked in each ranking, are also accommodated in
21-
the implementation. Disconnected/weakly connected networks implied by the
22-
rankings may be handled by adding pseudo-rankings with a hypothetical item.
23-
Optionally, a multivariate normal prior may be set on the log-worth
24-
parameters and ranker reliabilities may be incorporated as proposed by
25-
Raman and Joachims (2014) <doi:10.1145/2623330.2623654>. Maximum a
26-
posteriori estimation is used when priors are set. Methods are provided to
27-
estimate standard errors or quasi-standard errors for inference as well as
28-
to fit Plackett-Luce trees. See the package website or vignette for further
21+
the implementation. Disconnected/weakly connected networks implied by the
22+
rankings may be handled by adding pseudo-rankings with a hypothetical item.
23+
Optionally, a multivariate normal prior may be set on the log-worth
24+
parameters and ranker reliabilities may be incorporated as proposed by
25+
Raman and Joachims (2014) <doi:10.1145/2623330.2623654>. Maximum a
26+
posteriori estimation is used when priors are set. Methods are provided to
27+
estimate standard errors or quasi-standard errors for inference as well as
28+
to fit Plackett-Luce trees. See the package website or vignette for further
2929
details.
3030
License: GPL-3
3131
Encoding: UTF-8
3232
LazyData: true
3333
Depends: R (>= 2.10)
34-
Imports: Matrix, igraph, methods, partykit, psychotools,
34+
Imports: Matrix, igraph, methods, partykit, psychotools,
3535
psychotree, rARPACK, qvcalc, sandwich, stats
36-
Suggests: BiocStyle, BradleyTerry2, BradleyTerryScalable,
37-
Matrix.utils, PLMIX, StatRank, covr, hyper2, kableExtra, knitr,
36+
Suggests: BiocStyle, BradleyTerry2, BradleyTerryScalable,
37+
Matrix.utils, PLMIX, StatRank, covr, hyper2, kableExtra, knitr,
3838
lbfgs, gnm, pmr, rmarkdown, testthat, tibble
3939
RoxygenNote: 6.1.1
4040
VignetteBuilder: knitr

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# PlackettLuce 0.2-5
2+
3+
* Higher tolerance in tests of `vcov()` for CRAN Windows test machine.
4+
15
# PlackettLuce 0.2-4
26

37
## New Features

cran-comments.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
## Comments
22

3-
This update addresses the errors resulting from the change of method for
4-
generating from a discrete uniform distribution.
3+
This is a re-submission to fix the failed tests on r-devel-windows-ix86+x86_64.
54

65
## Test environments
7-
8-
* Local
9-
- Ubuntu 18.04.2 LTS, R 3.5.3
10-
- Ubuntu 18.04, R Under development (unstable) (2019-03-19 r76252)
11-
- Windows 8, R 3.5.3
126

13-
* Via R-hub
14-
- Mac OS 10.11 El Capitan, R-release (experimental)
7+
* Via Win-builder
8+
- Windows Server 2008 (64-bit), R-devel
159

1610
### Check results
1711

18-
I get one warning and one note on R-hub macOS.
12+
The test environment replicated the error with version 0.2-4.
13+
14+
This submission (0.2-5), passes with no error/warnings.
1915

20-
* The warning `pandoc: Could not fetch https://www.r-pkg.org/badges/version/PlackettLuce` is due to missing https support in an older version of pandoc.
21-
* The note `Found the following (possibly) invalid URL/DOIs` is a false alarm, I have checked the URLs work and the DOIs resolve (all go to jstor.org).
16+
There remains a note regarding possibly invalid URLs/DOIs which I believe is a false alarm as I have checked these URLs/DOIs. It may be due to a captcha challenge. They are all links to jstor.org.

tests/testthat/test-vcov.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ test_that("vcov.PlackettLuce approximated by vcov_hessian [gamma prior]", {
9494
# should be equal to low tolerance if base on observed Fisher Info though
9595
expect_equal(vcov(gamma_prior, type = "observed"),
9696
vcov_hessian(gamma_prior),
97-
check.attributes = FALSE, tol = 1e-7)
97+
check.attributes = FALSE, tol = 1e-6)
9898
# more data - N.B. this assumes each ranker gives exactly same ranking,
9999
# not likely in practice just checking statistical property here
100100
# (vcov_hessian slow with large number of adherence par, not practical to
@@ -107,7 +107,7 @@ test_that("vcov.PlackettLuce approximated by vcov_hessian [gamma prior]", {
107107
check.attributes = FALSE, tol = 1e-3)
108108
expect_equal(vcov(gamma_prior, type = "observed"),
109109
vcov_hessian(gamma_prior),
110-
check.attributes = FALSE, tol = 1e-7)
110+
check.attributes = FALSE, tol = 1e-6)
111111
})
112112

113113
test_that("vcov.PlackettLuce works, grouped rankings [normal + gamma prior]", {
@@ -128,7 +128,7 @@ test_that("vcov.PlackettLuce works, grouped rankings [normal + gamma prior]", {
128128
# but that based on observed info equals numerical hessian to medium tol
129129
expect_equal(vcov(both_priors, type = "observed"),
130130
vcov_hessian(both_priors),
131-
check.attributes = FALSE, tol = 1e-7)
131+
check.attributes = FALSE, tol = 1e-6)
132132
# gamma prior only (different method for Info inversion)
133133
gamma_prior <- PlackettLuce(rankings = G, npseudo = 0, method = "BFGS",
134134
gamma = list(shape = 100, rate = 100))

0 commit comments

Comments
 (0)