Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add r-logitr. #25833

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipes/r-logitr/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%R%" CMD INSTALL --build . %R_ARGS%
IF %ERRORLEVEL% NEQ 0 exit /B 1
3 changes: 3 additions & 0 deletions recipes/r-logitr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
export DISABLE_AUTOBREW=1
${R} CMD INSTALL --build . ${R_ARGS}
93 changes: 93 additions & 0 deletions recipes/r-logitr/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{% set version = '1.1.1' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
name: r-logitr
version: {{ version|replace("-", "_") }}

source:
url:
- {{ cran_mirror }}/src/contrib/logitr_{{ version }}.tar.gz
- {{ cran_mirror }}/src/contrib/Archive/logitr/logitr_{{ version }}.tar.gz
sha256: 9f22683bb9fff94825c9f9440a36f4a002463a49e34874176db8eeeef7cd2270

build:
merge_build_host: True # [win]
number: 0
noarch: generic
rpaths:
- lib/R/lib/
- lib/

requirements:
build:
- {{ posix }}zip # [win]
- cross-r-base {{ r_base }} # [build_platform != target_platform]
host:
- r-base
- r-mass
- r-generics
- r-nloptr
- r-randtoolbox
- r-tibble
run:
- r-base
- r-mass
- r-generics
- r-nloptr
- r-randtoolbox
- r-tibble

test:
commands:
- $R -e "library('logitr')" # [not win]
- "\"%R%\" -e \"library('logitr')\"" # [win]

about:
home: https://github.com/jhelvy/logitr
license: MIT
summary: 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>.
license_family: MIT
license_file:
- '{{ environ["PREFIX"] }}/lib/R/share/licenses/MIT'
- LICENSE

extra:
recipe-maintainers:
- conda-forge/r
- tobiasraabe

# Package: logitr
# Title: Logit Models w/Preference & WTP Space Utility Parameterizations
# Version: 1.1.1
# Authors@R: c( person(given = "John", family = "Helveston", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0002-2657-9191")), person(given = "Connor", family = "Forsythe", role = "ctb", email = "[email protected]"))
# Description: 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>.
# License: MIT + file LICENSE
# Encoding: UTF-8
# LazyData: true
# RoxygenNote: 7.2.3
# VignetteBuilder: knitr
# Depends: R (>= 3.5.0)
# Suggests: apollo, broom, dplyr, fastDummies, ggplot2, ggrepel, gmnl, gtsummary, here, kableExtra, knitr, mixl, mlogit, rmarkdown, testthat, texreg, tidyr
# Imports: generics, MASS, nloptr, parallel, randtoolbox, stats, tibble
# URL: https://github.com/jhelvy/logitr
# BugReports: https://github.com/jhelvy/logitr/issues
# NeedsCompilation: no
# Packaged: 2023-09-27 15:04:25 UTC; jhelvy
# Author: John Helveston [aut, cre, cph] (<https://orcid.org/0000-0002-2657-9191>), Connor Forsythe [ctb]
# Maintainer: John Helveston <[email protected]>
# Repository: CRAN
# Date/Publication: 2023-09-29 15:40:02 UTC
Loading