Package: logitr 1.2.0

logitr: Logit Models w/Preference & WTP Space Utility Parameterizations
Fast estimation of multinomial logit (MNL) and mixed logit (MXL) models. Models can be estimated using preference space or willingness-to-pay (WTP) space utility parameterizations. Weighted models can also be estimated. An option is available to run a parallelized multistart optimization loop with random starting points in each iteration, which is useful for non-convex problems like MXL models or models with WTP space utility parameterizations. The main optimization loop uses the 'nloptr' package to minimize the negative log-likelihood function. Additional functions are available for computing and comparing WTP from both preference space and WTP space models and for predicting expected choices and choice probabilities for sets of alternatives based on an estimated model. Mixed logit models can include uncorrelated or correlated heterogeneity covariances and are estimated using maximum simulated likelihood based on the algorithms in Train (2009) <doi:10.1017/CBO9780511805271>. More details can be found in Helveston (2023) <doi:10.18637/jss.v105.i10>.
Authors:
logitr_1.2.0.tar.gz
logitr_1.2.0.zip(r-4.7)logitr_1.2.0.zip(r-4.6)logitr_1.2.0.zip(r-4.5)
logitr_1.2.0.tgz(r-4.6-x86_64)logitr_1.2.0.tgz(r-4.6-arm64)logitr_1.2.0.tgz(r-4.5-x86_64)logitr_1.2.0.tgz(r-4.5-arm64)
logitr_1.2.0.tar.gz(r-4.7-arm64)logitr_1.2.0.tar.gz(r-4.7-x86_64)logitr_1.2.0.tar.gz(r-4.6-arm64)logitr_1.2.0.tar.gz(r-4.6-x86_64)
logitr_1.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
logitr/json (API)
| # Install 'logitr' in R: |
| install.packages('logitr', repos = c('https://jhelvy.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jhelvy/logitr/issues
Pkgdown/docs site:https://jhelvy.github.io
- apolloModeChoiceData - Simulated SP dataset of mode choice (from the apollo package).
- cars_china - Stated car choice observations by Chinese car buyers
- cars_us - Stated car choice observations by US car buyers
- electricity - Stated preference data for the choice of electricity suppliers
- loglik_draws - Data frame of mixed logit log-likelihoods as the number of draws grows
- runtimes - Data frame of run times for logitr benchmark
- runtimes_draws - Data frame of logitr run times as the number of draws grows
- yogurt - Choice observations of yogurt purchases by 100 households
log-likelihoodlogitlogit-modelmixed-logitmlogitmultinomial-regressionmxlmxl-modelspreference-spacepreferenceswillingness-to-paywtpcpp
Last updated from:e375a1d390. Checks:13 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 192 | ||
| linux-devel-x86_64 | OK | 213 | ||
| source / vignettes | OK | 283 | ||
| linux-release-arm64 | OK | 201 | ||
| linux-release-x86_64 | OK | 209 | ||
| macos-release-arm64 | OK | 167 | ||
| macos-release-x86_64 | OK | 246 | ||
| macos-oldrel-arm64 | OK | 159 | ||
| macos-oldrel-x86_64 | OK | 229 | ||
| windows-devel | OK | 171 | ||
| windows-release | OK | 195 | ||
| windows-oldrel | OK | 207 | ||
| wasm-release | OK | 154 |
Exports:augmentcidummyCodefquantileglancelogit_probslogitrpredictChoicespredictProbsrecodeDatasesimulateSharesstatusCodestidyvalidate_datawtpwtpCompare
Dependencies:cligenericsgluelifecyclemagrittrMASSmirainanonextnloptrpillarpkgconfigrandtoolboxRcppRcppParallelrlangrngWELLtibbleutf8vctrs
Last update: 2026-07-06
Started: 2022-06-16
Last update: 2026-07-06
Started: 2026-07-06
Last update: 2026-07-06
Started: 2022-10-04
Last update: 2025-12-19
Started: 2020-10-22
Last update: 2025-11-14
Started: 2020-12-06
Last update: 2023-09-24
Started: 2022-10-04
Last update: 2023-05-17
Started: 2021-10-25
Last update: 2022-10-04
Started: 2020-10-22
Last update: 2022-10-04
Started: 2020-10-21
Last update: 2022-06-16
Started: 2020-10-22
Last update: 2022-06-16
Started: 2020-12-06
Last update: 2021-10-25
Started: 2020-12-06
