Skip to content

choicer

Discrete Choice Models for Economic Applications

v0.1.0 · May 20, 2026 · LGPL (>= 3)

Description

Fast estimation of discrete-choice models for applied economics. Likelihoods, analytical gradients and Hessians are implemented in C++ with 'OpenMP' parallelism, scaling efficiently to specifications with many alternative-specific constants. Post-estimation routines return predicted shares, own- and cross-price elasticities, and diversion ratios. Supports multinomial logit ('MNL'), mixed logit ('MXL'), and nested logit ('NL').

Downloads

CRAN

422

Last 30 days

10163rd

656

Last 90 days

656

Last year

Trend: +80.3% (30d vs prior 30d)

r2u CRAN

25

Last 30 days

48

Last 90 days

48

Last year

Trend: +8.7% (30d vs prior 30d)

autoCRAN

0

Last 7 days

4

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

PDF version of manual

Rd conversion errors:
Converting parsed Rd's to LaTeX ....Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpmxriGV/ltx3588e56809d88/print.summary.choicer_nl.tex': No space left on device
Error in file(out, "wt") : cannot open the connection
OK 2 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 21, 2026

Code

Structure

Lines of code

18,143

Files

107

Compiled share

24.9%

Has compiled src

Yes

Language breakdown

R 5,242 (28.9%)C/C++/src 4,517 (24.9%)Tests 5,300 (29.2%)Docs 3,084 (17%)

API

Exported functions

36

Internal functions

66

Recent export changes

v0.1.0+36 blp, blp_contraction, build_var_mat +33 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.01

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

88.2%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

LGPL (>= 3)

License flags

not SPDX, not OSI

History

Versions

1

First release

2026-05-20

Latest release

2026-05-20

Avg cadence

Cold removal rate

Dep drift

0

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies data.table nloptr randtoolbox Rcpp choicer

Version History

1 tracked
new 0.1.0 May 20, 2026