Skip to content

Commit 227558a

Browse files
committed
updated to v0.3.0, rebuilt examples
1 parent 8753f76 commit 227558a

26 files changed

+30
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: logitr
22
Title: Logit Models w/Preference & WTP Space Utility Parameterizations
3-
Version: 0.2.7.9000
3+
Version: 0.3.0
44
Authors@R: c(
55
person(given = "John",
66
family = "Helveston",

NEWS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# logitr 0.3.0
2+
3+
## Breaking changes with v0.2.0:
4+
5+
- Several arguments were moved out of the previous `options` argument and are now passed directly as arguments to `logitr()`. These include: `numMultiStarts`, `useAnalyticGrad`, `scaleInputs`, `startParBounds`, `standardDraws`, `numDraws`, `startVals`. The `options` argument is now only used for options to control the optimization handled by `nloptr()`.
6+
- Options for keeping all model outputs on a multistart were removed.
7+
8+
## Summary of larger updates:
9+
10+
- Added support for panel data in the log-likelihood function and gradients.
11+
- Several argument names in the `logitr()` function were changed to make them easier to understand: `choiceName` became `choice`, `obsIDName` became `obsID`, `parNames` became `pars`, `priceName` became `price`, `weightsName` became `weights`, `clusterName` became `cluster`. If used, old names will be passed to the new argument names and a warning will be displayed.
12+
- The log-likelihood and gradient functions were overhauled to improve computational efficiency, resulting in substantially faster estimation for all models.
13+
- The following new methods were introduced: `print.logitr()`, `logLik.logitr()`, `coef.summary.logitr()`, `vcov.logitr()`, `terms.logitr()`
14+
15+
## Summary of smaller updates:
16+
17+
- Improved `summary.logitr()` and `coef.logitr()` methods for better printing, now using `printCoefmat()`.
18+
- Added input checks for `wtp()` and `wtpCompare()` functions
19+
- Fixed some errors in some of the documentation examples and removed the dontrun commands on all of them.
20+
- Added the `altIDName` argument to `predictChoices()` and `predictProbs()` to preserve the row order of predictions for each alternative in each set of alternatives. Closes issue #13.
21+
- Fixed bug in data encoding where random parameter names were not aligned with encoded data.
22+
- Added input checks for all predict functions.
23+
124
# logitr 0.2.7
225

326
Added support for panel data in the log-likelihood function and gradients

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ citation("logitr")
8787
#>
8888
#> John Paul Helveston (2021). logitr: Random utility logit models with
8989
#> preference and willingness to pay space parameterizations. R package
90-
#> version 0.2.7
90+
#> version 0.3.0
9191
#>
9292
#> A BibTeX entry for LaTeX users is
9393
#>
9494
#> @Manual{,
9595
#> title = {logitr: Random Utility Logit Models with Preference and Willingness to Pay Space Parameterizations},
9696
#> author = {John Paul Helveston},
9797
#> year = {2021},
98-
#> note = {R package version 0.2.7},
98+
#> note = {R package version 0.3.0},
9999
#> url = {https://jhelvy.github.io/logitr/},
100100
#> }
101101
```

cran-comments.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
## Test environments
2-
* local R installation, R 4.0.4
2+
* local R installation, R 4.1.0
33
* ubuntu 16.04 (on travis-ci), R 4.0.2
44
* win-builder (devel and release)
55

66
## R CMD check results
77
0 errors | 0 warnings | 0 notes
88

99
## Notes
10-
* This is a new release, and the second submission.
11-
* I fixed a url redirect error in the README.md of the initial submission.
10+
* This is a new release.

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ citEntry(
55
title = "logitr: Random Utility Logit Models with Preference and Willingness to Pay Space Parameterizations",
66
author = "John Paul Helveston",
77
year = "2021",
8-
note = "R package version 0.2.7",
8+
note = "R package version 0.3.0",
99
url = "https://jhelvy.github.io/logitr/",
10-
textVersion = "John Paul Helveston (2021). logitr: Random utility logit models with preference and willingness to pay space parameterizations. R package version 0.2.7"
10+
textVersion = "John Paul Helveston (2021). logitr: Random utility logit models with preference and willingness to pay space parameterizations. R package version 0.3.0"
1111
)

inst/extdata/choices_mnl_pref.Rds

12 Bytes
Binary file not shown.

inst/extdata/choices_mnl_wtp.Rds

-17 Bytes
Binary file not shown.

inst/extdata/choices_mxl_pref.Rds

-59 Bytes
Binary file not shown.

inst/extdata/choices_mxl_wtp.Rds

-1 Bytes
Binary file not shown.
10 Bytes
Binary file not shown.

inst/extdata/int_model_price_feat.Rds

33 Bytes
Binary file not shown.

inst/extdata/mnl_pref.Rds

29 Bytes
Binary file not shown.

inst/extdata/mnl_pref_dannon.Rds

31 Bytes
Binary file not shown.

inst/extdata/mnl_pref_dummies.Rds

10 Bytes
Binary file not shown.

inst/extdata/mnl_pref_weight.Rds

30 Bytes
Binary file not shown.

inst/extdata/mnl_wtp.Rds

54 Bytes
Binary file not shown.

inst/extdata/mnl_wtp_unweighted.Rds

186 Bytes
Binary file not shown.

inst/extdata/mnl_wtp_weighted.Rds

60 Bytes
Binary file not shown.

inst/extdata/model_price_feat_mxl.Rds

9 Bytes
Binary file not shown.

inst/extdata/mxl_pref.Rds

30 Bytes
Binary file not shown.

inst/extdata/mxl_wtp.Rds

54 Bytes
Binary file not shown.

inst/extdata/probs_mnl_pref.Rds

1 Byte
Binary file not shown.

inst/extdata/probs_mnl_wtp.Rds

2 Bytes
Binary file not shown.

inst/extdata/probs_mxl_pref.Rds

0 Bytes
Binary file not shown.

inst/extdata/probs_mxl_wtp.Rds

0 Bytes
Binary file not shown.

vignettes/probs.png

28 Bytes
Loading

0 commit comments

Comments
 (0)