{
  "_id": "6acf5d4be2d863f6629513f4",
  "Package": "microsimulation",
  "Type": "Package",
  "Title": "Discrete Event Simulation in R and C++, with Tools for\nCost-Effectiveness Analysis",
  "Version": "1.4.5",
  "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",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-14 10:39:01 UTC",
    "User": "root"
  },
  "Author": "Mark Clements [aut, cre, cph], Alexandra Jauhiainen [aut],\nAndreas Karlsson [aut], Antonio Carzaniga [cph], University of\nColorado [cph], Pierre L'Ecuyer [cph]",
  "Maintainer": "Mark Clements <mark.clements@ki.se>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2025-09-26 12:40:02 UTC",
  "RemoteUrl": "https://github.com/cran/microsimulation",
  "RemoteRef": "HEAD",
  "RemoteSha": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
  "_user": "cran",
  "_type": "src",
  "_file": "microsimulation_1.4.5.tar.gz",
  "_fileid": "https://r2.ropensci.org/56fae7fc2ae9fd22a516c42ba56754cbf6691d2d9ca6020129e4a6ddabb3acee",
  "_filesize": 2487043,
  "_sha256": "56fae7fc2ae9fd22a516c42ba56754cbf6691d2d9ca6020129e4a6ddabb3acee",
  "_expires": "2027-01-22T10:45:29.000Z",
  "_created": "2026-10-14T10:39:01.000Z",
  "_published": "2026-10-14T10:45:31.269Z",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115809236080,
      "time": 157,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11886438331"
    },
    {
      "job": 115809236037,
      "time": 147,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11887176097"
    },
    {
      "job": 115809235907,
      "time": 150,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11887490030"
    },
    {
      "job": 115809236082,
      "time": 174,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11886423500"
    },
    {
      "job": 115807936066,
      "time": 204,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11887235361"
    },
    {
      "job": 115809236015,
      "time": 151,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11887420154"
    },
    {
      "job": 115809235939,
      "time": 294,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11887216225"
    },
    {
      "job": 115809235926,
      "time": 236,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11886937006"
    },
    {
      "job": 115809235946,
      "time": 298,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11886473595"
    },
    {
      "job": 115809235963,
      "time": 140,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11886443219"
    }
  ],
  "_upstream": "https://github.com/cran/microsimulation",
  "_commit": {
    "id": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
    "author": "Mark Clements <mark.clements@ki.se>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.4.5\n",
    "time": 1758890402
  },
  "_maintainer": {
    "name": "Mark Clements",
    "email": "mark.clements@ki.se",
    "login": "mclements",
    "description": "",
    "uuid": 557321
  },
  "_distro": "resolute",
  "_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"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mclements",
      "count": 10,
      "uuid": 557321
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 427,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/microsimulation"
  },
  "_devurl": "https://github.com/mclements/microsimulation",
  "_searchresults": 34,
  "_topics": [
    "openblas",
    "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/microsimulation.html"
  ],
  "_homeurl": "https://github.com/mclements/microsimulation",
  "_realowner": "mclements",
  "_cranurl": false,
  "_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",
    "discountedInterval",
    "discountedPoint",
    "enum",
    "enum<-",
    "frontier",
    "ICER",
    "inlineCxxPlugin",
    "LdFlags",
    "microsimulation.exit",
    "microsimulation.init",
    "next.user.Random.substream",
    "pqueue",
    "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",
    "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",
        "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": "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": 1.5314789170422551,
  "_indexed": false,
  "_nocasepkg": "microsimulation",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://mclements.r-universe.dev/microsimulation",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.5",
      "date": "2026-10-14T10:41:45.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/d674346d7ef2f6f8a36b6fcadc5dfda48bd1c978a5ac77369441e8a429c8dc8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.5",
      "date": "2026-10-14T10:41:43.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/85813867f0debf69c4a47af58b00202d1ec740c20af6cdf3f3ee783d5ef30ef8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.5",
      "date": "2026-10-14T10:41:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/ec8cc808bb941d3b525d01605d4d4e4ef043f01157f0e06d5c2bef3916a67a99",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.5",
      "date": "2026-10-14T10:42:02.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/8fbf307ac904683ca7e9417e2b7a631a99804d66c5daa20d95c007349d958d4b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.5",
      "date": "2026-10-14T10:41:48.000Z",
      "arch": "emscripten",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/0d21a242a0c606adedd81ce90d2e67aa8fb083ecb9db640dbf8f2a8840f3ea2f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.5",
      "date": "2026-10-14T10:43:18.000Z",
      "arch": "aarch64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/251ddd559b75e4d0376dbbf48a97741c4aaeb1622e2218f1704af5bff1544e30",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.5",
      "date": "2026-10-14T10:41:05.000Z",
      "arch": "x86_64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/5079960c4a430127ad68996bf8db24e8b6e9091dc51f07d7dd67fc2e2b1fd085",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.5",
      "date": "2026-10-14T10:43:21.000Z",
      "arch": "aarch64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/3cd8e9d2ff8975019d46871f8b607d2cb24a191ad45ff66d25443abb7b827f2c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.5",
      "date": "2026-10-14T10:40:52.000Z",
      "arch": "x86_64",
      "commit": "f1505fb6dad1a1647ce96c926aefef662b5cf06a",
      "fileid": "https://r2.ropensci.org/a36c410db5e2c11d90c178e1ccdede668328598da25e4b51b648e2f618a514ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/38550736848"
    }
  ]
}