{
  "_id": "6ad08acccf31981cbb6ee69c",
  "Package": "rmdcev",
  "Type": "Package",
  "Title": "Kuhn-Tucker and Multiple Discrete-Continuous Extreme Value\nModels",
  "Version": "1.3.4",
  "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",
  "Packaged": {
    "Date": "2026-10-15 07:59:08 UTC",
    "User": "root"
  },
  "Author": "Patrick Lloyd-Smith [aut, cre], Trustees of Columbia University\n[cph]",
  "Config/pak/sysreqs": "make",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-09-14 23:40:07 UTC",
  "RemoteUrl": "https://github.com/cran/rmdcev",
  "RemoteRef": "HEAD",
  "RemoteSha": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
  "_user": "cran",
  "_type": "src",
  "_file": "rmdcev_1.3.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/b9bdf89228bdec4b3be452185f5963ed50e44a4133fadb3f2a12bd42b75de9fe",
  "_filesize": 647653,
  "_sha256": "b9bdf89228bdec4b3be452185f5963ed50e44a4133fadb3f2a12bd42b75de9fe",
  "_expires": "2027-01-23T08:11:54.000Z",
  "_created": "2026-10-15T07:59:08.000Z",
  "_published": "2026-10-15T08:11:56.804Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116315051483,
      "time": 360,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11957960090"
    },
    {
      "job": 116315051498,
      "time": 337,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11957775307"
    },
    {
      "job": 116315051598,
      "time": 474,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957730802"
    },
    {
      "job": 116315051525,
      "time": 388,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957162706"
    },
    {
      "job": 116310901993,
      "time": 656,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11956434173"
    },
    {
      "job": 116315051421,
      "time": 422,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11957700610"
    },
    {
      "job": 116315051558,
      "time": 493,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11957182946"
    },
    {
      "job": 116315051485,
      "time": 404,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11956759757"
    },
    {
      "job": 116315051511,
      "time": 536,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957278155"
    },
    {
      "job": 116315051599,
      "time": 475,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957113214"
    }
  ],
  "_upstream": "https://github.com/cran/rmdcev",
  "_commit": {
    "id": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
    "author": "Patrick Lloyd-Smith <patrick.lloydsmith@usask.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.3.4\n",
    "time": 1789429207
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-11",
      "n": 1
    },
    {
      "week": "2026-30",
      "n": 1
    },
    {
      "week": "2026-38",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.3.0",
      "date": "2026-03-10"
    },
    {
      "name": "1.3.3",
      "date": "2026-07-20"
    },
    {
      "name": "1.3.4",
      "date": "2026-09-14"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "plloydsmith",
      "count": 10,
      "uuid": 11999751
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 553,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rmdcev"
  },
  "_devurl": "https://github.com/plloydsmith/rmdcev",
  "_searchresults": 18,
  "_topics": [
    "onetbb",
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rmdcev.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/plloydsmith/rmdcev",
  "_realowner": "plloydsmith",
  "_cranurl": false,
  "_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"
    },
    {
      "version": "1.3.3",
      "date": "2026-07-20"
    },
    {
      "version": "1.3.4",
      "date": "2026-09-15"
    }
  ],
  "_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/cran/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": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "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-07-20 16:40:02",
      "modified": "2026-09-14 23:40:07",
      "commits": 2
    }
  ],
  "_score": 3.4313637641589874,
  "_indexed": false,
  "_nocasepkg": "rmdcev",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://plloydsmith.r-universe.dev/rmdcev",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.4",
      "date": "2026-10-15T08:04:46.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/e1d1e528812d8199282329192bdf5b30041c7fd07e9fe765ac4b1b3239f168b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.4",
      "date": "2026-10-15T08:05:08.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/ebe4750ad61f98d8472ed6d26d465a28d4dec904e1c04c7b409e44c72f417d62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.4",
      "date": "2026-10-15T08:06:12.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/b30275ea2fd7172734c709e9a9aadffc26719ea13ea9da59deaf353be3dd8d67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.4",
      "date": "2026-10-15T08:05:09.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/c5fde4352a91d9f100b46429df02e68d18b61440b9ed0d0eb2d9a976fdeea667",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.4",
      "date": "2026-10-15T08:08:17.000Z",
      "arch": "emscripten",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/1c1cf670fe7784ce93ac6ecfa1b46f7286764756b978e64c6b19428ea934a530",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.4",
      "date": "2026-10-15T08:06:37.000Z",
      "arch": "aarch64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/8e048efe570f9794eb5f6a311fda55ea6cdb4e89d6965a4d103fefbd2ad14236",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.4",
      "date": "2026-10-15T08:04:46.000Z",
      "arch": "x86_64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/c1c0f322eca40026d5dcf3957136b3ad5fa717b347748f1d2da139a5749bf2ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.4",
      "date": "2026-10-15T08:07:20.000Z",
      "arch": "aarch64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/5097ca28d2d233af623cbfc41df8f5b028358a26a8189db81758b0c811bba7a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.3.4",
      "date": "2026-10-15T08:04:56.000Z",
      "arch": "x86_64",
      "commit": "e1e51979cb0205c554e5e15989da8288b76c3f3b",
      "fileid": "https://r2.ropensci.org/dec913154ed7ad7b1f6ef99ac2109fd121eed10bfd18cbc969e6c4ac7b82070e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38701573145"
    }
  ]
}