{
  "_id": "6a4a668e1e9cffeb4b8339b3",
  "Package": "rmdcev",
  "Type": "Package",
  "Title": "Kuhn-Tucker and Multiple Discrete-Continuous Extreme Value\nModels",
  "Version": "1.3.3",
  "Authors@R": "c(\nperson(given = \"Patrick\",\nfamily = \"Lloyd-Smith\",\nrole = c(\"aut\", \"cre\"),\nemail = \"patrick.lloydsmith@usask.ca\"),\nperson(\"Trustees of\", \"Columbia University\",\nrole = \"cph\"))",
  "Maintainer": "Patrick Lloyd-Smith <patrick.lloydsmith@usask.ca>",
  "Description": "Estimates and simulates Kuhn-Tucker demand models with\nindividual heterogeneity. The package implements the\nmultiple-discrete continuous extreme value (MDCEV) model and\nthe Kuhn-Tucker specification common in the environmental\neconomics literature on recreation demand. Latent class and\nrandom parameters specifications can be implemented and the\nmodels are fit using maximum likelihood estimation or Bayesian\nestimation. All models are implemented in 'Stan' (see Stan\nDevelopment Team, 2019) <https://mc-stan.org/>. The package\nalso implements demand forecasting (Pinjari and Bhat (2011)\n<https://repositories.lib.utexas.edu/handle/2152/23880>) and\nwelfare calculation (Lloyd-Smith (2018)\n<doi:10.1016/j.jocm.2017.12.002>) for policy simulation. 'Stan'\nmodels can be estimated using either the 'cmdstanr' (default)\nor 'rstan' backend. If using 'cmdstanr', then user will need to\ninstall 'cmdstanr' manually <https://mc-stan.org/cmdstanr/>.",
  "License": "MIT + file LICENSE",
  "Language": "en-US",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "SystemRequirements": "GNU make, CmdStan (>= 2.29.0)",
  "NeedsCompilation": "yes",
  "RoxygenNote": "7.3.3",
  "Biarch": "true",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Additional_repositories": "https://stan-dev.r-universe.dev/",
  "URL": "https://github.com/plloydsmith/rmdcev",
  "BugReports": "https://github.com/plloydsmith/rmdcev/issues",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://plloydsmith.r-universe.dev",
  "Date/Publication": "2026-05-12 18:30:53 UTC",
  "RemoteUrl": "https://github.com/plloydsmith/rmdcev",
  "RemoteRef": "HEAD",
  "RemoteSha": "2bf054fcb3cab844b49c07222be07729c8bf3036",
  "Packaged": {
    "Date": "2026-07-05 13:55:39 UTC",
    "User": "root"
  },
  "Author": "Patrick Lloyd-Smith [aut, cre],\nTrustees of Columbia University [cph]",
  "_user": "plloydsmith",
  "_type": "src",
  "_file": "rmdcev_1.3.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/59623e7da24788721e38ad8747d8eccce03c8cd3fdf9149457b3173957aad28c",
  "_filesize": 641994,
  "_sha256": "59623e7da24788721e38ad8747d8eccce03c8cd3fdf9149457b3173957aad28c",
  "_expires": "2026-10-13T14:13:32.000Z",
  "_created": "2026-07-05T13:55:39.000Z",
  "_published": "2026-07-05T14:13:34.778Z",
  "_jobs": [
    {
      "job": 85229513736,
      "time": 396,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8092519894"
    },
    {
      "job": 85229513720,
      "time": 442,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8092525078"
    },
    {
      "job": 85229513735,
      "time": 434,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092524397"
    },
    {
      "job": 85229513753,
      "time": 446,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092525531"
    },
    {
      "job": 85229513738,
      "time": 414,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8092517432"
    },
    {
      "job": 85229513727,
      "time": 861,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8092575648"
    },
    {
      "job": 85229513751,
      "time": 266,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092499686"
    },
    {
      "job": 85229513725,
      "time": 553,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092536973"
    },
    {
      "job": 85228822552,
      "time": 582,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092467878"
    },
    {
      "job": 85229513710,
      "time": 230,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 85229513721,
      "time": 485,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8092530249"
    },
    {
      "job": 85229513723,
      "time": 556,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8092538899"
    },
    {
      "job": 85229513718,
      "time": 545,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8092537611"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915",
  "_status": "success",
  "_upstream": "https://github.com/plloydsmith/rmdcev",
  "_commit": {
    "id": "2bf054fcb3cab844b49c07222be07729c8bf3036",
    "author": "Patrick Lloyd-Smith <patrick.lloydsmith@usask.ca>",
    "committer": "Patrick Lloyd-Smith <patrick.lloydsmith@usask.ca>",
    "message": "add to .rd file\n",
    "time": 1778610653
  },
  "_maintainer": {
    "name": "Patrick Lloyd-Smith",
    "email": "patrick.lloydsmith@usask.ca",
    "login": "plloydsmith",
    "description": "Water and Resource Economist at the University of Saskatchewan",
    "uuid": 11999751
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.5",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.72.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.29.0",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.29.0",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.29.0",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.3.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "apollo",
      "role": "Suggests"
    },
    {
      "package": "bench",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    }
  ],
  "_owner": "plloydsmith",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 64
    },
    {
      "week": "2026-09",
      "n": 4
    },
    {
      "week": "2026-10",
      "n": 2
    },
    {
      "week": "2026-20",
      "n": 12
    }
  ],
  "_tags": [],
  "_stars": 13,
  "_contributors": [
    {
      "user": "plloydsmith",
      "count": 476,
      "uuid": 11999751
    },
    {
      "user": "andrjohns",
      "count": 8,
      "uuid": 27717896
    }
  ],
  "_userbio": {
    "uuid": 11999751,
    "type": "user",
    "name": "Patrick Lloyd-Smith",
    "followers": 25,
    "description": "Water and Resource Economist at the University of Saskatchewan"
  },
  "_downloads": {
    "count": 565,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rmdcev"
  },
  "_devurl": "https://github.com/plloydsmith/rmdcev",
  "_searchresults": 16,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "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",
    "extra/rmdcev.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/plloydsmith/rmdcev",
  "_realowner": "plloydsmith",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.9.0",
      "date": "2019-06-21"
    },
    {
      "version": "1.1.1",
      "date": "2019-11-22"
    },
    {
      "version": "1.2.0",
      "date": "2020-08-14"
    },
    {
      "version": "1.2.2",
      "date": "2020-09-18"
    },
    {
      "version": "1.2.3",
      "date": "2020-09-23"
    },
    {
      "version": "1.2.4",
      "date": "2020-09-30"
    },
    {
      "version": "1.2.5",
      "date": "2023-03-30"
    },
    {
      "version": "1.3.0",
      "date": "2026-03-10"
    }
  ],
  "_exports": [
    "CalcMarshallianDemand_rng",
    "CalcWTP_rng",
    "ComputeUtilJ",
    "CreateBlankPolicies",
    "DrawError_rng",
    "GenerateMDCEVData",
    "HicksianDemand",
    "MarshallianDemand",
    "mdcev",
    "mdcev.data",
    "mdcev.sim",
    "PrepareSimulationData",
    "rmdcev_get_rng",
    "rmdcev_get_stream"
  ],
  "_datasets": [
    {
      "name": "data_rec",
      "title": "Recreation data from Value of Nature to Canadians Survey",
      "object": "data_rec",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "alt",
        "quant",
        "price",
        "income",
        "urban",
        "ageindex",
        "university"
      ],
      "rows": 34000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "CreateBlankPolicies",
      "title": "CreateBlankPolicies",
      "topics": [
        "CreateBlankPolicies"
      ]
    },
    {
      "page": "data_rec",
      "title": "Recreation data from Value of Nature to Canadians Survey",
      "topics": [
        "data_rec"
      ]
    },
    {
      "page": "GenerateMDCEVData",
      "title": "GenerateMDCEVData",
      "topics": [
        "GenerateMDCEVData"
      ]
    },
    {
      "page": "mdcev",
      "title": "mdcev",
      "topics": [
        "mdcev",
        "print.mdcev",
        "print.summary.mdcev",
        "summary.mdcev"
      ]
    },
    {
      "page": "mdcev.data",
      "title": "data.frame for mdcev model",
      "topics": [
        "mdcev.data"
      ]
    },
    {
      "page": "mdcev.sim",
      "title": "mdcev.sim",
      "topics": [
        "mdcev.sim",
        "print.mdcev.sim",
        "print.summary.mdcev.sim",
        "summary.mdcev.sim"
      ]
    },
    {
      "page": "PrepareSimulationData",
      "title": "PrepareSimulationData",
      "topics": [
        "PrepareSimulationData"
      ]
    },
    {
      "page": "rmdcev_get_rng",
      "title": "rmdcev_get_rng",
      "topics": [
        "rmdcev_get_rng"
      ]
    },
    {
      "page": "rmdcev_get_stream",
      "title": "rmdcev_get_stream",
      "topics": [
        "rmdcev_get_stream"
      ]
    },
    {
      "page": "simulation_functions",
      "title": "Low-level MDCEV simulation functions",
      "topics": [
        "CalcMarshallianDemand_rng",
        "CalcWTP_rng",
        "ComputeUtilJ",
        "DrawError_rng",
        "HicksianDemand",
        "MarshallianDemand",
        "simulation_functions"
      ]
    }
  ],
  "_readme": "https://github.com/plloydsmith/rmdcev/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "dplyr",
    "farver",
    "Formula",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "apollo-benchmark.Rmd",
      "filename": "apollo-benchmark.html",
      "title": "rmdcev vs Apollo: Parameter Recovery and Timing Benchmark",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Helper functions",
        "Wide-format conversion for Apollo",
        "Apollo probability function factory",
        "Apollo starting-values vector",
        "Fit both packages, return comparison table",
        "1 · Parameter recovery",
        "2 · Timing benchmark",
        "2a · MLE estimation timing",
        "3 · Demand simulation: 1% price increase",
        "Policy specification",
        "3a · Apollo apollo_prediction() approach (convergence check, n=500, J=5)",
        "3b · Demand simulation timing (rmdcev vs Apollo, n=500)",
        "4 · Results summary",
        "MLE estimation",
        "Demand simulation (100 draws per individual, 3 replicates, n=500)",
        "Demand change convergence (n=500, J=5, 1% price increase, same additive policy)",
        "Session info"
      ],
      "created": "2026-05-11 21:16:37",
      "modified": "2026-05-11 21:16:37",
      "commits": 1
    }
  ],
  "_score": 5.619093330626743,
  "_indexed": true,
  "_nocasepkg": "rmdcev",
  "_universes": [
    "plloydsmith"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/79131bd0954e2e977779291d9051526ec4a01b0837a0f96744619f0be475ad05",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:45.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/ed86219731dc9a7aa282bfb86f492f06fd70228f3b6413fcc4e65cde7084cb47",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/f0ee579a1385b5a840c8043a2057a1320655a13fc72b0bb7083c0135e0821fb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:43.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/7c596304fa6395ecf5303c5b96c6536324a5372ead3bd6dc2b71bdf37a789e80",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:26.000Z",
      "arch": "aarch64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/3e4cbaa98bbe51b0eb447a75774e0e61684e4f19a77dc4f818185f20e6e5bd67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.3.3",
      "date": "2026-07-05T14:03:28.000Z",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/cfcf5e0028aeef565bbdba89218bf2cb953a08a7ff7a14f351f2c511d9b39b5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.3",
      "date": "2026-07-05T14:00:29.000Z",
      "arch": "aarch64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/22e4b1f6b003c678b895dd92754f36531049323e736126287ffcdbe0c9df603c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:55.000Z",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/6a86c86ebc95bad41419a17be91d92f71bb7c2900adc9af1f938da5f255a3d1e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:17.000Z",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/fb12a666930bc17bd272bbce0b753f482b79820bf79ba1f7d1f5899706bf4f51",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.3.3",
      "date": "2026-07-05T14:01:17.000Z",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/cc07d59d10a0324772583640d733aefd2b8ee2924ce7fbae07a9cd1f55f58da6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.3",
      "date": "2026-07-05T14:00:57.000Z",
      "arch": "x86_64",
      "commit": "2bf054fcb3cab844b49c07222be07729c8bf3036",
      "fileid": "https://r2.ropensci.org/51238bcf55361c0ce113f7ca3f7f11962f75112db100fa15dbb6a5b7d87fc4b8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/plloydsmith/actions/runs/28742930915"
    }
  ]
}