{
  "_id": "6a1ed4bfb401979e7340e319",
  "Package": "choicer",
  "Title": "Discrete Choice Models for Economic Applications",
  "Version": "0.1.0",
  "Authors@R": "person(\"Fernando\", \"Cordeiro\", , \"fernandolpcordeiro@gmail.com\", role = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Fast estimation of discrete-choice models for applied\neconomics. Likelihoods, analytical gradients and Hessians are\nimplemented in C++ with 'OpenMP' parallelism, scaling\nefficiently to specifications with many alternative-specific\nconstants. Post-estimation routines return predicted shares,\nown- and cross-price elasticities, and diversion ratios.\nSupports multinomial logit ('MNL'), mixed logit ('MXL'), and\nnested logit ('NL').",
  "License": "LGPL (>= 3)",
  "URL": "https://github.com/fpcordeiro/choicer",
  "BugReports": "https://github.com/fpcordeiro/choicer/issues",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-20 13:46:18 UTC",
    "User": "root"
  },
  "Author": "Fernando Cordeiro [aut, cre, cph]",
  "Maintainer": "Fernando Cordeiro <fernandolpcordeiro@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-05-20 09:10:07 UTC",
  "RemoteUrl": "https://github.com/cran/choicer",
  "RemoteRef": "HEAD",
  "RemoteSha": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
  "MD5sum": "8dcaa6fc5687890ac626a1375e88ef33",
  "_user": "cran",
  "_type": "src",
  "_file": "choicer_0.1.0.tar.gz",
  "_fileid": "0612af48c6a5da916874ec453bd0a76917a94a7fe3ea82603e5f56e292079097",
  "_filesize": 408903,
  "_sha256": "0612af48c6a5da916874ec453bd0a76917a94a7fe3ea82603e5f56e292079097",
  "_created": "2026-05-20T13:46:18.000Z",
  "_published": "2026-06-02T13:03:59.781Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79076637426,
      "time": 154,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7111825557"
    },
    {
      "job": 79076637006,
      "time": 153,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7111825430"
    },
    {
      "job": 79076637540,
      "time": 158,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7111828396"
    },
    {
      "job": 79076637916,
      "time": 173,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7111833617"
    },
    {
      "job": 79076636194,
      "time": 211,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7111759005"
    },
    {
      "job": 79076636559,
      "time": 125,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7358408406"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/choicer",
  "_commit": {
    "id": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
    "author": "Fernando Cordeiro <fernandolpcordeiro@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1779268207
  },
  "_maintainer": {
    "name": "Fernando Cordeiro",
    "email": "fernandolpcordeiro@gmail.com",
    "login": "fpcordeiro",
    "description": "Economics PhD",
    "uuid": 9939519
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "role": "Imports"
    },
    {
      "package": "randtoolbox",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "goftest",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-21",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-05-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fpcordeiro",
      "count": 1,
      "uuid": 9939519
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/choicer"
  },
  "_devurl": "https://github.com/fpcordeiro/choicer",
  "_searchresults": 8,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/choicer.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-05-20"
    }
  ],
  "_exports": [
    "blp",
    "blp_contraction",
    "build_var_mat",
    "diversion_ratios",
    "elasticities",
    "get_halton_normals",
    "jacobian_vech_Sigma",
    "mc_asymptotics",
    "mnl_diversion_ratios_parallel",
    "mnl_elasticities_parallel",
    "mnl_loglik_gradient_parallel",
    "mnl_loglik_hessian_parallel",
    "mnl_predict",
    "mnl_predict_shares",
    "monte_carlo",
    "mxl_bhhh_parallel",
    "mxl_blp_contraction",
    "mxl_diversion_ratios_parallel",
    "mxl_elasticities_parallel",
    "mxl_hessian_parallel",
    "mxl_loglik_gradient_parallel",
    "mxl_predict",
    "mxl_predict_shares",
    "new_choicer_sim",
    "nl_loglik_gradient_parallel",
    "nl_loglik_numeric_hessian",
    "prepare_mnl_data",
    "prepare_mxl_data",
    "prepare_nl_data",
    "recovery_table",
    "run_mnlogit",
    "run_mxlogit",
    "run_nestlogit",
    "simulate_mnl_data",
    "simulate_mxl_data",
    "simulate_nl_data"
  ],
  "_help": [
    {
      "page": "blp",
      "title": "BLP contraction mapping",
      "topics": [
        "blp"
      ]
    },
    {
      "page": "blp_contraction",
      "title": "BLP95 contraction mapping to find delta given target shares",
      "topics": [
        "blp_contraction"
      ]
    },
    {
      "page": "blp.choicer_mnl",
      "title": "BLP contraction mapping for multinomial logit model",
      "topics": [
        "blp.choicer_mnl"
      ]
    },
    {
      "page": "blp.choicer_mxl",
      "title": "BLP contraction mapping for mixed logit model",
      "topics": [
        "blp.choicer_mxl"
      ]
    },
    {
      "page": "build_var_mat",
      "title": "Reconstruct variance matrix L from L_params",
      "topics": [
        "build_var_mat"
      ]
    },
    {
      "page": "coef.choicer_fit",
      "title": "Extract coefficients from a choicer_fit object",
      "topics": [
        "coef.choicer_fit"
      ]
    },
    {
      "page": "diversion_ratios",
      "title": "Compute aggregate diversion ratios",
      "topics": [
        "diversion_ratios"
      ]
    },
    {
      "page": "diversion_ratios.choicer_mnl",
      "title": "Diversion ratios for multinomial logit model",
      "topics": [
        "diversion_ratios.choicer_mnl"
      ]
    },
    {
      "page": "diversion_ratios.choicer_mxl",
      "title": "Diversion ratios for mixed logit model",
      "topics": [
        "diversion_ratios.choicer_mxl"
      ]
    },
    {
      "page": "elasticities",
      "title": "Compute aggregate elasticities",
      "topics": [
        "elasticities"
      ]
    },
    {
      "page": "elasticities.choicer_mnl",
      "title": "Elasticities for multinomial logit model",
      "topics": [
        "elasticities.choicer_mnl"
      ]
    },
    {
      "page": "elasticities.choicer_mxl",
      "title": "Elasticities for mixed logit model",
      "topics": [
        "elasticities.choicer_mxl"
      ]
    },
    {
      "page": "get_halton_normals",
      "title": "Halton draws for mixed logit",
      "topics": [
        "get_halton_normals"
      ]
    },
    {
      "page": "jacobian_vech_Sigma",
      "title": "Utility to compute analytical Jacobian of random coefficient matrix transformed by vech (dVech(Sigma) / dTheta)",
      "topics": [
        "jacobian_vech_Sigma"
      ]
    },
    {
      "page": "logLik.choicer_fit",
      "title": "Extract log-likelihood from a choicer_fit object",
      "topics": [
        "logLik.choicer_fit"
      ]
    },
    {
      "page": "mc_asymptotics",
      "title": "Asymptotic diagnostics for a Monte Carlo study",
      "topics": [
        "mc_asymptotics"
      ]
    },
    {
      "page": "mnl_diversion_ratios_parallel",
      "title": "Compute MNL diversion ratios (parallelized over individuals)",
      "topics": [
        "mnl_diversion_ratios_parallel"
      ]
    },
    {
      "page": "mnl_elasticities_parallel",
      "title": "Compute aggregate elasticities for MNL model",
      "topics": [
        "mnl_elasticities_parallel"
      ]
    },
    {
      "page": "mnl_loglik_gradient_parallel",
      "title": "Log-likelihood and gradient for multinomial logit model",
      "topics": [
        "mnl_loglik_gradient_parallel"
      ]
    },
    {
      "page": "mnl_loglik_hessian_parallel",
      "title": "Hessian matrix for multinomial logit model",
      "topics": [
        "mnl_loglik_hessian_parallel"
      ]
    },
    {
      "page": "mnl_predict",
      "title": "Prediction of choice probabilities and utilities based on fitted model",
      "topics": [
        "mnl_predict"
      ]
    },
    {
      "page": "mnl_predict_shares",
      "title": "Prediction of market shares based on fitted model",
      "topics": [
        "mnl_predict_shares"
      ]
    },
    {
      "page": "monte_carlo",
      "title": "Monte Carlo parameter recovery",
      "topics": [
        "monte_carlo"
      ]
    },
    {
      "page": "mxl_bhhh_parallel",
      "title": "BHHH (outer product of gradients) information matrix for Mixed Logit",
      "topics": [
        "mxl_bhhh_parallel"
      ]
    },
    {
      "page": "mxl_blp_contraction",
      "title": "BLP contraction mapping for mixed logit",
      "topics": [
        "mxl_blp_contraction"
      ]
    },
    {
      "page": "mxl_diversion_ratios_parallel",
      "title": "Diversion ratios for Mixed Logit (simulated, derivative-based)",
      "topics": [
        "mxl_diversion_ratios_parallel"
      ]
    },
    {
      "page": "mxl_elasticities_parallel",
      "title": "Compute aggregate elasticities for mixed logit model",
      "topics": [
        "mxl_elasticities_parallel"
      ]
    },
    {
      "page": "mxl_hessian_parallel",
      "title": "Analytical Hessian of the log-likelihood v2",
      "topics": [
        "mxl_hessian_parallel"
      ]
    },
    {
      "page": "mxl_loglik_gradient_parallel",
      "title": "Log-likelihood and gradient for Mixed Logit",
      "topics": [
        "mxl_loglik_gradient_parallel"
      ]
    },
    {
      "page": "mxl_predict",
      "title": "Per-observation simulated choice probabilities for Mixed Logit",
      "topics": [
        "mxl_predict"
      ]
    },
    {
      "page": "mxl_predict_shares",
      "title": "Predicted aggregate market shares for Mixed Logit",
      "topics": [
        "mxl_predict_shares"
      ]
    },
    {
      "page": "new_choicer_sim",
      "title": "Construct a 'choicer_sim' object",
      "topics": [
        "new_choicer_sim"
      ]
    },
    {
      "page": "nl_loglik_gradient_parallel",
      "title": "Log-likelihood and gradient for Nested Logit model",
      "topics": [
        "nl_loglik_gradient_parallel"
      ]
    },
    {
      "page": "nl_loglik_numeric_hessian",
      "title": "Numerical Hessian of the log-likelihood via finite differences",
      "topics": [
        "nl_loglik_numeric_hessian"
      ]
    },
    {
      "page": "nobs.choicer_fit",
      "title": "Extract number of observations from a choicer_fit object",
      "topics": [
        "nobs.choicer_fit"
      ]
    },
    {
      "page": "predict.choicer_mnl",
      "title": "Predict from a multinomial logit model",
      "topics": [
        "predict.choicer_mnl"
      ]
    },
    {
      "page": "predict.choicer_mxl",
      "title": "Predict from a mixed logit model",
      "topics": [
        "predict.choicer_mxl"
      ]
    },
    {
      "page": "prepare_mnl_data",
      "title": "Prepare inputs for 'mnl_loglik_gradient_parallel()'",
      "topics": [
        "prepare_mnl_data"
      ]
    },
    {
      "page": "prepare_mxl_data",
      "title": "Prepare inputs for 'mxl_loglik_gradient_parallel()'",
      "topics": [
        "prepare_mxl_data"
      ]
    },
    {
      "page": "prepare_nl_data",
      "title": "Prepare inputs for nested logit estimation",
      "topics": [
        "prepare_nl_data"
      ]
    },
    {
      "page": "print.choicer_fit",
      "title": "Print a choicer_fit object",
      "topics": [
        "print.choicer_fit"
      ]
    },
    {
      "page": "print.summary.choicer_mnl",
      "title": "Print summary for multinomial logit model",
      "topics": [
        "print.summary.choicer_mnl"
      ]
    },
    {
      "page": "print.summary.choicer_mxl",
      "title": "Print summary for mixed logit model",
      "topics": [
        "print.summary.choicer_mxl"
      ]
    },
    {
      "page": "print.summary.choicer_nl",
      "title": "Print summary for nested logit model",
      "topics": [
        "print.summary.choicer_nl"
      ]
    },
    {
      "page": "recovery_table",
      "title": "Parameter recovery table",
      "topics": [
        "recovery_table",
        "recovery_table.choicer_fit",
        "recovery_table.choicer_mc"
      ]
    },
    {
      "page": "run_mnlogit",
      "title": "Runs multinomial logit estimation",
      "topics": [
        "run_mnlogit"
      ]
    },
    {
      "page": "run_mxlogit",
      "title": "Runs mixed logit estimation",
      "topics": [
        "run_mxlogit"
      ]
    },
    {
      "page": "run_nestlogit",
      "title": "Runs nested logit estimation",
      "topics": [
        "run_nestlogit"
      ]
    },
    {
      "page": "simulate_mnl_data",
      "title": "Simulate multinomial logit data",
      "topics": [
        "simulate_mnl_data"
      ]
    },
    {
      "page": "simulate_mxl_data",
      "title": "Simulate mixed logit data",
      "topics": [
        "simulate_mxl_data"
      ]
    },
    {
      "page": "simulate_nl_data",
      "title": "Simulate nested logit data",
      "topics": [
        "simulate_nl_data"
      ]
    },
    {
      "page": "summary.choicer_mnl",
      "title": "Summary for multinomial logit model",
      "topics": [
        "summary.choicer_mnl"
      ]
    },
    {
      "page": "summary.choicer_mxl",
      "title": "Summary for mixed logit model",
      "topics": [
        "summary.choicer_mxl"
      ]
    },
    {
      "page": "summary.choicer_nl",
      "title": "Summary for nested logit model",
      "topics": [
        "summary.choicer_nl"
      ]
    },
    {
      "page": "vcov.choicer_fit",
      "title": "Extract variance-covariance matrix from a choicer_fit object",
      "topics": [
        "vcov.choicer_fit"
      ]
    }
  ],
  "_readme": "https://github.com/cran/choicer/raw/HEAD/README.md",
  "_rundeps": [
    "data.table",
    "nloptr",
    "randtoolbox",
    "Rcpp",
    "RcppArmadillo",
    "rngWELL"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "choicer",
  "_universes": [
    "cran",
    "fpcordeiro"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-20T13:48:57.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
      "fileid": "9524e7613c60b41421f12c3dbdbafcf8d779e0ee84e83c33c8226c5c1d1ecba9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-20T13:48:57.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
      "fileid": "71c417e7440317a87a6c2c82db044bf9a61c4c6ef4657da0b4f0b8dc1bf743fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-20T13:49:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
      "fileid": "f6141cf0295a06d6e1f4f3adfdff9cc62b218d6b730c1c6e8592b19f8fbd58ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-20T13:49:23.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
      "fileid": "bddd66dfd2eecc3daf316dfde2a08679485ea51bd47b6b5202d44036981e142d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-06-02T13:02:24.000Z",
      "arch": "emscripten",
      "commit": "7105dd7b4b34a24b5ae3fc5df92dd00db2917547",
      "fileid": "237ae5fa8c6e523a91e62dd3040ca4df6fa9a869b8ab4d48dbec110070684420",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26166529430"
    }
  ]
}