{
  "_id": "6a17ecb9acfb0bcc41da468b",
  "Package": "microsimulation",
  "Type": "Package",
  "Title": "Discrete Event Simulation in R and C++, with Tools for\nCost-Effectiveness Analysis",
  "Version": "1.4.9",
  "Authors@R": "c(person(\"Mark\", \"Clements\", role=c(\"aut\",\"cre\",\"cph\"),email=\"mark.clements@ki.se\"),\nperson(\"Alexandra\", \"Jauhiainen\", role=\"aut\"),\nperson(\"Andreas\", \"Karlsson\", role=\"aut\"),\nperson(\"Antonio\",\"Carzaniga\", role=\"cph\"),\nperson(\"University of Colorado\", role=\"cph\"),\nperson(\"Pierre\", \"L'Ecuyer\", role=\"cph\"))",
  "Description": "Discrete event simulation using both R and C++ (Karlsson\net al 2016; <doi:10.1109/eScience.2016.7870915>). The C++ code\nis adapted from the SSIM library\n<https://www.inf.usi.ch/carzaniga/ssim/>, allowing for\nevent-oriented simulation. The code includes a SummaryReport\nclass for reporting events and costs by age and other\ncovariates. The C++ code is available as a static library for\nlinking to other packages. A priority queue implementation is\ngiven in C++ together with an S3 closure and a reference class\nimplementation. Finally, some tools are provided for\ncost-effectiveness analysis.",
  "License": "GPL (>= 3)",
  "LazyData": "true",
  "URL": "https://github.com/mclements/microsimulation",
  "BugReports": "https://github.com/mclements/microsimulation/issues",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "Repository": "https://mclements.r-universe.dev",
  "Date/Publication": "2026-02-27 11:55:18 UTC",
  "RemoteUrl": "https://github.com/mclements/microsimulation",
  "RemoteRef": "HEAD",
  "RemoteSha": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-28 07:02:00 UTC",
    "User": "root"
  },
  "Author": "Mark Clements [aut, cre, cph],\nAlexandra Jauhiainen [aut],\nAndreas Karlsson [aut],\nAntonio Carzaniga [cph],\nUniversity of Colorado [cph],\nPierre L'Ecuyer [cph]",
  "Maintainer": "Mark Clements <mark.clements@ki.se>",
  "MD5sum": "c102f133ee5b194c619af811f93db31a",
  "_user": "mclements",
  "_type": "src",
  "_file": "microsimulation_1.4.9.tar.gz",
  "_fileid": "c4083d275a4a829da6262deed507d8d3a22e7be608429f1a1c2ff1818f2e61b7",
  "_filesize": 603790,
  "_sha256": "c4083d275a4a829da6262deed507d8d3a22e7be608429f1a1c2ff1818f2e61b7",
  "_created": "2026-05-28T07:02:00.000Z",
  "_published": "2026-05-28T07:20:25.138Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78240405640,
      "time": 175,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7259695535"
    },
    {
      "job": 78240405563,
      "time": 178,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7259695911"
    },
    {
      "job": 78240405528,
      "time": 187,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259697975"
    },
    {
      "job": 78240405543,
      "time": 163,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259692236"
    },
    {
      "job": 78240405554,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7259863157"
    },
    {
      "job": 78240405676,
      "time": 419,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7259925372"
    },
    {
      "job": 78240405572,
      "time": 141,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259853869"
    },
    {
      "job": 78240405558,
      "time": 396,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259810681"
    },
    {
      "job": 78239974245,
      "time": 193,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259649444"
    },
    {
      "job": 78240405621,
      "time": 147,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259688509"
    },
    {
      "job": 78240405553,
      "time": 199,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7259701605"
    },
    {
      "job": 78240405580,
      "time": 234,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7259710893"
    },
    {
      "job": 78240405619,
      "time": 200,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7259701403"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mclements/microsimulation",
  "_commit": {
    "id": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
    "author": "Mark Clements <mark.clements@ki.se>",
    "committer": "Mark Clements <mark.clements@ki.se>",
    "message": "Fixes for CRAN submission\n",
    "time": 1772193318
  },
  "_maintainer": {
    "name": "Mark Clements",
    "email": "mark.clements@ki.se",
    "login": "mclements",
    "description": "",
    "uuid": 557321
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "version": ">= 0.10.2",
      "role": "Depends"
    },
    {
      "package": "methods",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "ascii",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    }
  ],
  "_owner": "mclements",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-22",
      "n": 2
    },
    {
      "week": "2025-39",
      "n": 1
    },
    {
      "week": "2025-40",
      "n": 3
    },
    {
      "week": "2025-48",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "cpp",
    "discrete-event-simulation",
    "health-economics",
    "openblas",
    "cpp"
  ],
  "_stars": 43,
  "_contributors": [
    {
      "user": "mclements",
      "count": 328,
      "uuid": 557321
    },
    {
      "user": "andreasakarlsson",
      "count": 133,
      "uuid": 5526898
    },
    {
      "user": "alejau",
      "count": 10,
      "uuid": 3898358
    },
    {
      "user": "kland",
      "count": 2,
      "uuid": 2462777
    }
  ],
  "_userbio": {
    "uuid": 557321,
    "type": "user",
    "name": "mclements"
  },
  "_downloads": {
    "count": 212,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/microsimulation"
  },
  "_devurl": "https://github.com/mclements/microsimulation",
  "_searchresults": 25,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/microsimulation.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mclements/microsimulation",
  "_realowner": "mclements",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.3.3",
      "date": "2021-03-20"
    },
    {
      "version": "1.3.4",
      "date": "2021-03-21"
    },
    {
      "version": "1.3.5",
      "date": "2021-07-15"
    },
    {
      "version": "1.3.6",
      "date": "2021-11-16"
    },
    {
      "version": "1.3.7",
      "date": "2022-04-04"
    },
    {
      "version": "1.4.1",
      "date": "2022-10-18"
    },
    {
      "version": "1.4.2",
      "date": "2023-03-08"
    },
    {
      "version": "1.4.3",
      "date": "2023-07-19"
    },
    {
      "version": "1.4.4",
      "date": "2024-08-19"
    },
    {
      "version": "1.4.5",
      "date": "2025-09-26"
    }
  ],
  "_exports": [
    "advance.substream",
    "callCalibrationPerson",
    "callIllnessDeath",
    "callPersonSimulation",
    "callSimplePerson",
    "callSimplePerson2",
    "ceac_mvn",
    "discountedInterval",
    "discountedPoint",
    "dMVK",
    "enum",
    "enum<-",
    "frontier",
    "ICER",
    "inlineCxxPlugin",
    "LdFlags",
    "microsimulation.exit",
    "microsimulation.init",
    "next.user.Random.substream",
    "pMVK",
    "pqueue",
    "pqueue__cancel",
    "pqueue__clear",
    "pqueue__empty",
    "pqueue__new",
    "pqueue__pop",
    "pqueue__push",
    "qMVK",
    "r_create_current_stream",
    "r_get_user_random_seed",
    "r_next_rng_substream",
    "r_remove_current_stream",
    "r_rng_advance_substream",
    "r_set_user_random_seed",
    "rMVK",
    "RNGstate",
    "RNGStream",
    "rnormPos",
    "set.user.Random.seed",
    "signed",
    "unsigned",
    "user.Random.seed"
  ],
  "_datasets": [
    {
      "name": "fhcrcData",
      "title": "Old data used in the prostata model",
      "object": "fhcrcData",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "microsimulation-package",
      "title": "microsimulation",
      "topics": [
        "microsimulation-package",
        "microsimulation"
      ]
    },
    {
      "page": "Utilities",
      "title": "Internal function",
      "topics": [
        ".microsimulationLdFlags",
        ".onLoad",
        ".onUnload",
        "advance.substream",
        "ceac_mvn",
        "discountedPoint",
        "enum",
        "enum<-",
        "frontier",
        "ICER",
        "inlineCxxPlugin",
        "LdFlags",
        "lines_frontier",
        "microsimulation.exit",
        "microsimulation.init",
        "next.user.Random.substream",
        "RNGstate",
        "rnormPos",
        "set.user.Random.seed",
        "signed",
        "unsigned",
        "user.Random.seed"
      ]
    },
    {
      "page": "Examples",
      "title": "call CalibrationPerson example",
      "topics": [
        "callCalibrationPerson",
        "callIllnessDeath",
        "callPersonSimulation",
        "callSimplePerson",
        "callSimplePerson2"
      ]
    },
    {
      "page": "discountedInterval",
      "title": "Integrate a discounted value",
      "topics": [
        "discountedInterval"
      ]
    },
    {
      "page": "MVK",
      "title": "Probability density function for an MVK distribution",
      "topics": [
        "dMVK",
        "pMVK",
        "qMVK",
        "rMVK",
        "rMVK2"
      ]
    },
    {
      "page": "Data",
      "title": "Old data used in the prostata model",
      "topics": [
        "fhcrcData"
      ]
    },
    {
      "page": "Classes",
      "title": "S3 priority queue implementation using C++",
      "topics": [
        "BaseDiscreteEventSimulation",
        "BaseDiscreteEventSimulation-class",
        "EventQueue",
        "EventQueue-class",
        "pqueue",
        "PQueueRef",
        "PQueueRef-class"
      ]
    },
    {
      "page": "Internal",
      "title": "C++ function",
      "topics": [
        "callCalibrationSimulation",
        "pqueue__cancel",
        "pqueue__clear",
        "pqueue__empty",
        "pqueue__new",
        "pqueue__pop",
        "pqueue__push",
        "r_create_current_stream",
        "r_get_user_random_seed",
        "r_next_rng_substream",
        "r_remove_current_stream",
        "r_rng_advance_substream",
        "r_set_user_random_seed"
      ]
    },
    {
      "page": "RNGStream",
      "title": "S3 class to work with RngStream objects",
      "topics": [
        "RNGStream",
        "RNGStream-class",
        "with.RNGStream"
      ]
    },
    {
      "page": "simulate",
      "title": "Simulate event times from a survreg object",
      "topics": [
        "simulate.survreg"
      ]
    },
    {
      "page": "SummaryReport",
      "title": "summary method for a SummaryReport object",
      "topics": [
        "ascii.ICER.SummaryReport",
        "ascii.SummaryReport",
        "ICER.SummaryReport",
        "print.summary.SummaryReport",
        "print.SummaryReport",
        "rbind.SummaryReport",
        "summary.SummaryReport"
      ]
    }
  ],
  "_rundeps": [
    "ascii",
    "codetools",
    "digest",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppArmadillo",
    "survival"
  ],
  "_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"
    }
  ],
  "_score": 5.41161970596323,
  "_indexed": true,
  "_nocasepkg": "microsimulation",
  "_universes": [
    "mclements"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:45.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "687f687e4b50c7e506ffd501851c78a2255f54d5c0ea9364b2dc72db4a0ffa5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:48.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "d198c9e488f51c0d6be234f79df760d3e9760b3b47b5244f51b644916f80f6b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:55.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "0d449e25f11d9a8b1516b86551a5aa54094c4aae25325ddecda9344a3ee06130",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:36.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "f7668e41507052a66d5ba9d2203adfaf17419c605b6885a861344ccab3d4088d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-05-28T07:15:49.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "dae3c4ca3ee55acb8de848614b5298c365acd3198c761e98ffe8405fa8109f30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-05-28T07:17:03.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "812389a772128a33da497ec800cf224a45636baa9df44608f823a27149474b9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-05-28T07:15:08.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "3cb0d629458d016e0ff469aa0de170fd14050b22797be8921b6ffb0d35f08f9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-05-28T07:10:52.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "ce102fdbd7a26ffa1ab6e32aa1fa71d69bb88b65c8c8b2d66a1c37c941666777",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:49.000Z",
      "arch": "emscripten",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "42046efa5fd9f2f607909fd24b9dd7348a11e1fde43f879ddb0eda0e1304ef1e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:07.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "bb42027496343dc1c0614a43f432ef306da83079f827407d61c465aaf08f9119",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:25.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "7bc8ac824caf595137424dbbb14d0c6b406776bc350d3df496bc2c9432995a87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-05-28T07:04:07.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "2e29a214121ce8f52d335cb605534cbf102723f344555ab0e85c0a9ca836e10f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/26559849161"
    }
  ]
}