Skip to content

Commit

Permalink
updated to v0.3.0, rebuilt examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Aug 13, 2021
1 parent 8753f76 commit 227558a
Show file tree
Hide file tree
Showing 26 changed files with 30 additions and 8 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: logitr
Title: Logit Models w/Preference & WTP Space Utility Parameterizations
Version: 0.2.7.9000
Version: 0.3.0
Authors@R: c(
person(given = "John",
family = "Helveston",
Expand Down
23 changes: 23 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
# logitr 0.3.0

## Breaking changes with v0.2.0:

- 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()`.
- Options for keeping all model outputs on a multistart were removed.

## Summary of larger updates:

- Added support for panel data in the log-likelihood function and gradients.
- 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.
- The log-likelihood and gradient functions were overhauled to improve computational efficiency, resulting in substantially faster estimation for all models.
- The following new methods were introduced: `print.logitr()`, `logLik.logitr()`, `coef.summary.logitr()`, `vcov.logitr()`, `terms.logitr()`

## Summary of smaller updates:

- Improved `summary.logitr()` and `coef.logitr()` methods for better printing, now using `printCoefmat()`.
- Added input checks for `wtp()` and `wtpCompare()` functions
- Fixed some errors in some of the documentation examples and removed the dontrun commands on all of them.
- 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.
- Fixed bug in data encoding where random parameter names were not aligned with encoded data.
- Added input checks for all predict functions.

# logitr 0.2.7

Added support for panel data in the log-likelihood function and gradients
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ citation("logitr")
#>
#> John Paul Helveston (2021). logitr: Random utility logit models with
#> preference and willingness to pay space parameterizations. R package
#> version 0.2.7
#> version 0.3.0
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Manual{,
#> title = {logitr: Random Utility Logit Models with Preference and Willingness to Pay Space Parameterizations},
#> author = {John Paul Helveston},
#> year = {2021},
#> note = {R package version 0.2.7},
#> note = {R package version 0.3.0},
#> url = {https://jhelvy.github.io/logitr/},
#> }
```
5 changes: 2 additions & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
## Test environments
* local R installation, R 4.0.4
* local R installation, R 4.1.0
* ubuntu 16.04 (on travis-ci), R 4.0.2
* win-builder (devel and release)

## R CMD check results
0 errors | 0 warnings | 0 notes

## Notes
* This is a new release, and the second submission.
* I fixed a url redirect error in the README.md of the initial submission.
* This is a new release.
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ citEntry(
title = "logitr: Random Utility Logit Models with Preference and Willingness to Pay Space Parameterizations",
author = "John Paul Helveston",
year = "2021",
note = "R package version 0.2.7",
note = "R package version 0.3.0",
url = "https://jhelvy.github.io/logitr/",
textVersion = "John Paul Helveston (2021). logitr: Random utility logit models with preference and willingness to pay space parameterizations. R package version 0.2.7"
textVersion = "John Paul Helveston (2021). logitr: Random utility logit models with preference and willingness to pay space parameterizations. R package version 0.3.0"
)
Binary file modified inst/extdata/choices_mnl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/choices_mnl_wtp.Rds
Binary file not shown.
Binary file modified inst/extdata/choices_mxl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/choices_mxl_wtp.Rds
Binary file not shown.
Binary file modified inst/extdata/int_model_price_brand.Rds
Binary file not shown.
Binary file modified inst/extdata/int_model_price_feat.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_pref_dannon.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_pref_dummies.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_pref_weight.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_wtp.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_wtp_unweighted.Rds
Binary file not shown.
Binary file modified inst/extdata/mnl_wtp_weighted.Rds
Binary file not shown.
Binary file modified inst/extdata/model_price_feat_mxl.Rds
Binary file not shown.
Binary file modified inst/extdata/mxl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/mxl_wtp.Rds
Binary file not shown.
Binary file modified inst/extdata/probs_mnl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/probs_mnl_wtp.Rds
Binary file not shown.
Binary file modified inst/extdata/probs_mxl_pref.Rds
Binary file not shown.
Binary file modified inst/extdata/probs_mxl_wtp.Rds
Binary file not shown.
Binary file modified vignettes/probs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 227558a

Please sign in to comment.