{
  "_id": "6a62a422d3420cf5dfdb482e",
  "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",
  "Packaged": {
    "Date": "2026-07-23 23:13:47 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-07-20 16:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/rmdcev",
  "RemoteRef": "HEAD",
  "RemoteSha": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
  "_user": "cran",
  "_type": "src",
  "_file": "rmdcev_1.3.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/7bf6f4c6d08a6fd7072a4314ea878494498caefd311520f3f697089abf5a0825",
  "_filesize": 646696,
  "_sha256": "7bf6f4c6d08a6fd7072a4314ea878494498caefd311520f3f697089abf5a0825",
  "_expires": "2026-10-31T23:30:40.000Z",
  "_created": "2026-07-23T23:13:47.000Z",
  "_published": "2026-07-23T23:30:42.050Z",
  "_jobs": [
    {
      "job": 89357972823,
      "time": 383,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8581827689"
    },
    {
      "job": 89357972809,
      "time": 440,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8581846050"
    },
    {
      "job": 89357972828,
      "time": 372,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8581820965"
    },
    {
      "job": 89357972819,
      "time": 457,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8581853033"
    },
    {
      "job": 89356363754,
      "time": 613,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8581603903"
    },
    {
      "job": 89357972759,
      "time": 286,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8581797559"
    },
    {
      "job": 89357972764,
      "time": 547,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8581795330"
    },
    {
      "job": 89357972788,
      "time": 496,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8581761764"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721",
  "_status": "success",
  "_upstream": "https://github.com/cran/rmdcev",
  "_commit": {
    "id": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
    "author": "Patrick Lloyd-Smith <patrick.lloydsmith@usask.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.3.3\n",
    "time": 1784565602
  },
  "_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
    }
  ],
  "_tags": [
    {
      "name": "1.3.0",
      "date": "2026-03-10"
    },
    {
      "name": "1.3.3",
      "date": "2026-07-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "plloydsmith",
      "count": 9,
      "uuid": 11999751
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 623,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 498,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rmdcev"
  },
  "_devurl": "https://github.com/plloydsmith/rmdcev",
  "_searchresults": 16,
  "_topics": [
    "onetbb",
    "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": 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"
    }
  ],
  "_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-07-20 16:40:02",
      "commits": 1
    }
  ],
  "_score": 3.204119982655925,
  "_indexed": false,
  "_nocasepkg": "rmdcev",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://plloydsmith.r-universe.dev/rmdcev",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-23T23:25:00.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/677de266d0580db82fef0f673856be27a0c3ef3ad17c7800f6fe26fb5c184fd6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-23T23:25:32.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/f6aba4ae95ce16b54877d2d0107ce487b955c06b3017aa83a663da84c63c2db4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-23T23:24:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/3105790843ee9f03d9011c6707436ba6b36deba25cac356f27a8c7b5b07ff75b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.3.3",
      "date": "2026-07-23T23:25:39.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/a6d28f84c430f5c1e9807c99e778bb04377f07b246aafd379fc03f29c8378fba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.3.3",
      "date": "2026-07-23T23:25:41.000Z",
      "arch": "emscripten",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/eebcb0a943407138fb5347d0cae55087ecafa2616d5320b3921aea434edf6fc9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.3",
      "date": "2026-07-23T23:22:47.000Z",
      "arch": "aarch64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/0a07294c0f0b320384adfe5f37b86c1db20a50af945c23135530814e49cd74de",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.3.3",
      "date": "2026-07-23T23:18:50.000Z",
      "arch": "x86_64",
      "commit": "7892ceedd481064f88a7a3ff6b5ee367e0b4319c",
      "fileid": "https://r2.ropensci.org/6c9d242d63bee132318376e06bf35e2adbeaed764302b8a4584a0ac593acf0c9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/30052151721"
    }
  ]
}