Package: logitr 1.1.2
![](https://jhelvy.github.io/logitr/reference/figures/logo.png)
logitr: Logit Models w/Preference & WTP Space Utility Parameterizations
Fast estimation of multinomial (MNL) and mixed logit (MXL) models in R. 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.1.2.tar.gz
logitr_1.1.2.zip(r-4.5)logitr_1.1.2.zip(r-4.4)logitr_1.1.2.zip(r-4.3)
logitr_1.1.2.tgz(r-4.4-any)logitr_1.1.2.tgz(r-4.3-any)
logitr_1.1.2.tar.gz(r-4.5-noble)logitr_1.1.2.tar.gz(r-4.4-noble)
logitr_1.1.2.tgz(r-4.4-emscripten)logitr_1.1.2.tgz(r-4.3-emscripten)
logitr.pdf |logitr.html✨
logitr/json (API)
NEWS
# 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
- 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
- runtimes - Data frame of run times for logitr benchmark
- yogurt - Choice observations of yogurt purchases by 100 households
log-likelihoodlogitlogit-modelmixed-logitmlogitmultinomial-regressionmxlmxl-modelspreference-spacepreferenceswillingness-to-paywtp
Last updated 2 months agofrom:633208e7e3. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Aug 23 2024 |
R-4.5-win | OK | Aug 23 2024 |
R-4.5-linux | OK | Aug 23 2024 |
R-4.4-win | OK | Aug 23 2024 |
R-4.4-mac | OK | Aug 23 2024 |
R-4.3-win | OK | Aug 23 2024 |
R-4.3-mac | OK | Aug 23 2024 |
Exports:augmentcidummyCodefquantileglancelogit_probslogitrpredictChoicespredictProbsrecodeDatasesimulateSharesstatusCodestidywtpwtpCompare
Dependencies:clifansigenericsgluelifecyclemagrittrMASSnloptrpillarpkgconfigrandtoolboxrlangrngWELLtibbleutf8vctrs
Basic Usage
Rendered frombasic_usage.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-10-04
Started: 2020-10-22
Benchmarking estimation speed against other packages
Rendered frombenchmark.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-06-16
Started: 2022-06-16
Data Formatting and Encoding
Rendered fromdata_formatting.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2023-02-07
Started: 2020-12-06
Estimating Mixed Logit Models
Rendered frommxl_models.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-10-04
Started: 2020-10-21
Estimating Models with Interactions
Rendered frominteractions.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2021-10-25
Started: 2020-12-06
Estimating Multinomial Logit Models
Rendered frommnl_models.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-06-16
Started: 2020-10-22
Estimating Weighted Logit Models
Rendered frommnl_models_weighted.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-06-16
Started: 2020-12-06
Predicting Probabilities and Outcomes with Estimated Models
Rendered frompredict.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2023-05-17
Started: 2021-10-25
Summarizing Results
Rendered fromsummarizing_results.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-10-04
Started: 2022-10-04
Utility Models in the Preference & WTP Space
Rendered fromutility_models.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2022-06-11
Started: 2020-10-22
WTP space convergence issues in other packages
Rendered fromconvergence.Rmd
usingknitr::rmarkdown
on Aug 23 2024.Last update: 2023-09-24
Started: 2022-10-04