{
  "_id": "6af1a44f1c36d7c6403e3872",
  "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-11-09 10:38:09 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>",
  "_user": "mclements",
  "_type": "src",
  "_file": "microsimulation_1.4.9.tar.gz",
  "_fileid": "https://r2.ropensci.org/2ea956b895b6922ede0b36061baa5bab33ac2c583b56d8e7d767cee75b8efa52",
  "_filesize": 605397,
  "_sha256": "2ea956b895b6922ede0b36061baa5bab33ac2c583b56d8e7d767cee75b8efa52",
  "_expires": "2027-02-17T10:45:34.000Z",
  "_created": "2026-11-09T10:38:09.000Z",
  "_published": "2026-11-09T10:45:35.780Z",
  "_upstream": "https://github.com/mclements/microsimulation",
  "_status": "success",
  "_maintainer": {
    "name": "Mark Clements",
    "email": "mark.clements@ki.se",
    "login": "mclements",
    "description": "",
    "uuid": 557321
  },
  "_jobs": [
    {
      "job": 129109949298,
      "time": 146,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13666357966"
    },
    {
      "job": 129109949302,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13666611412"
    },
    {
      "job": 129109949313,
      "time": 173,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13667190507"
    },
    {
      "job": 129109949292,
      "time": 159,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666442568"
    },
    {
      "job": 129109949310,
      "time": 155,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13665959466"
    },
    {
      "job": 129109949434,
      "time": 358,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13666896829"
    },
    {
      "job": 129109949343,
      "time": 162,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666202637"
    },
    {
      "job": 129109949376,
      "time": 266,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666662065"
    },
    {
      "job": 129108341944,
      "time": 226,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665733723"
    },
    {
      "job": 129109949278,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13667100855"
    },
    {
      "job": 129109949374,
      "time": 296,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13666422095"
    },
    {
      "job": 129109949323,
      "time": 231,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13667091067"
    },
    {
      "job": 129109949344,
      "time": 186,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13666636455"
    },
    {
      "job": 129109949512,
      "time": 295,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666202978"
    },
    {
      "job": 129109949408,
      "time": 146,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666053297"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968",
  "_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
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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-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": 44,
  "_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",
    "followers": 69
  },
  "_downloads": {
    "count": 554,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/microsimulation"
  },
  "_devurl": "https://github.com/mclements/microsimulation",
  "_searchresults": 35,
  "_abi": {
    "exports": [
      {
        "key": "microsimulation/include",
        "hash": "a7c7dd3b43a3bb57"
      },
      {
        "key": "microsimulation::BaseDiscreteEventSimulation",
        "hash": "aa51c79369e521bd"
      },
      {
        "key": "microsimulation::EventQueue",
        "hash": "1d6ce6f4a521a637"
      },
      {
        "key": "microsimulation::PQueueRef",
        "hash": "8c2721a91981f0ca"
      },
      {
        "key": "microsimulation::RNGStream",
        "hash": "db105e0a6ccf07e6"
      }
    ],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::rcpp_get_stack_trace()",
        "hash": "c684a9bbe15cdc52"
      },
      {
        "key": "Rcpp::rcpp_set_stack_trace()",
        "hash": "33a97ea62b293da6"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/microsimulation.html"
  ],
  "_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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 5.363611979892144,
  "_indexed": true,
  "_nocasepkg": "microsimulation",
  "_universes": [
    "mclements"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:37.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/7c60e94335b3a5c5a000d58c3794c5e252417cdafd4c775e577fdf8dc1bacfe7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:45.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/631d8c99fec6791d777e68e5908c368a45df12fb1681ebbcde3388c2f3e91d4c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-11-09T10:41:13.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/61dc10e4cd52324d38ade06f83ec9727fff90b1ebce334b59d130baa53d58a01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:56.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/f92024c7229141224f571948aaae2783167c2c725e9cdedab8cd74b7812da531",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:46.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/c239c622d7b8fd122591bc34fbb5b602310a3de42be0910344796fdcce921060",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-11-09T10:42:23.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/69b078951421ef502d422da7b457a0c4e2d6bc37fe6d4a4a878122b2ccce9ad7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:45.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/40446a3b9ab10eab8befb7577cfd63f7aae31e5c2a1c6a15bb6d458382e54a33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.4.9",
      "date": "2026-11-09T10:41:47.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/9d7ac9b60193fc3626846df8baf3dd03f446104ca1512bd647fc4370e06efe87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:53.000Z",
      "arch": "emscripten",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/ea06df9f6b09868d89c48438ee8c35ebeb31785e5dfbd0945dfa7aeb6c1ef02e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-11-09T10:42:03.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/2f1adc673d4d14f5fc28907864b0a1e8084120b61d3ed5acbb76e208b6975de0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:25.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/9f0af652bcf6566ba078144b6d68088e85a7852455663ad2072a49fc4ebaca2f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:34.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/eae5f2c5cc2b18a5db90ea5a9cf826fbd4687dff779318dd439abe2cfc06a970",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-11-09T10:42:33.000Z",
      "arch": "aarch64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/2856ccdf361b725e92289609bc8742955f1c4844d17d657d0cd0a2ee418a73cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.4.9",
      "date": "2026-11-09T10:40:04.000Z",
      "arch": "x86_64",
      "commit": "27211dd9941ddda6e8a494bbb6462c281650fdd4",
      "fileid": "https://r2.ropensci.org/6bbd63b591908f33f2851354776525ac5db40c92fb19ce92d782ec0bfd3316d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mclements/actions/runs/42601904968"
    }
  ]
}