{
  "_id": "6ab9673299f7aa8c6aa3a82c",
  "Package": "bunsen",
  "Title": "Marginal Survival Estimation with Covariate Adjustment",
  "Version": "0.1.1",
  "Authors@R": "c(person(given = \"Xinlei\",\nfamily = \"Deng\",\nemail = \"xinlei.deng@novartis.com\",\nrole = c(\"cre\", \"aut\"),\ncomment = c(ORCID = \"0000-0001-8129-6007\")\n),\nperson(given = \"Mark\",\nfamily = \"Baillie\",\nemail = \"mark.baillie@novartis.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0002-5618-0667\")\n),\nperson(given = \"Craig\",\nfamily = \"Wang\",\nemail = \"craig.wang@novartis.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-1804-2463\")\n),\nperson(given = \"Dominic\",\nfamily = \"Magirr\",\nemail = \"dominic.magirr@novartis.com\",\nrole = c(\"aut\")\n),\nperson(given = \"Alex\",\nfamily = \"Przybylski\",\nemail = \"alexander.przybylski@novartis.com\",\nrole = c(\"aut\")\n))",
  "Description": "Provides an efficient and robust implementation for\nestimating marginal Hazard Ratio (HR) and Restricted Mean\nSurvival Time (RMST) with covariate adjustment using Daniel et\nal. (2021) <doi:10.1002/bimj.201900297> and Karrison et al.\n(2018) <doi:10.1177/1740774518759281>.",
  "Maintainer": "Xinlei Deng <xinlei.deng@novartis.com>",
  "URL": "https://openpharma.github.io/bunsen/",
  "BugReports": "https://github.com/openpharma/bunsen/issues",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.3",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-09-27 18:40:41 UTC",
    "User": "root"
  },
  "Author": "Xinlei Deng [cre, aut] (ORCID:\n<https://orcid.org/0000-0001-8129-6007>), Mark Baillie [aut]\n(ORCID: <https://orcid.org/0000-0002-5618-0667>), Craig Wang\n[aut] (ORCID: <https://orcid.org/0000-0003-1804-2463>), Dominic\nMagirr [aut], Alex Przybylski [aut]",
  "Config/pak/sysreqs": "libzmq3-dev",
  "Repository": "https://cranhaven.r-universe.dev",
  "Date/Publication": "2026-09-27 11:02:00 UTC",
  "RemoteUrl": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "RemoteRef": "package/bunsen",
  "RemoteSha": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
  "RemoteSubdir": "bunsen",
  "_user": "cranhaven",
  "_type": "src",
  "_file": "bunsen_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/1397fa39e2a1ae5160c5d733cee0ea825688028bb55f9f8c0671c00e662b4a86",
  "_filesize": 253541,
  "_sha256": "1397fa39e2a1ae5160c5d733cee0ea825688028bb55f9f8c0671c00e662b4a86",
  "_expires": "2027-01-05T18:57:52.000Z",
  "_created": "2026-09-27T18:40:41.000Z",
  "_published": "2026-09-27T18:57:54.290Z",
  "_jobs": [
    {
      "job": 108682525717,
      "time": 149,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10939370686"
    },
    {
      "job": 108682525726,
      "time": 151,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10939250821"
    },
    {
      "job": 108682525766,
      "time": 128,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10938774121"
    },
    {
      "job": 108682525728,
      "time": 143,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10939220905"
    },
    {
      "job": 108682525752,
      "time": 90,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10938873729"
    },
    {
      "job": 108682525715,
      "time": 311,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10939236143"
    },
    {
      "job": 108682525754,
      "time": 111,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10938884857"
    },
    {
      "job": 108682525793,
      "time": 209,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10938913711"
    },
    {
      "job": 108681959064,
      "time": 195,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10939685045"
    },
    {
      "job": 108682525719,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10939126816"
    },
    {
      "job": 108682525738,
      "time": 217,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10939170977"
    },
    {
      "job": 108682525709,
      "time": 132,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10938858502"
    },
    {
      "job": 108682525794,
      "time": 111,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10938699351"
    },
    {
      "job": 108682525779,
      "time": 305,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10939046607"
    },
    {
      "job": 108682525781,
      "time": 130,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10939520272"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198",
  "_status": "success",
  "_upstream": "https://github.com/cranhaven/cranhaven.r-universe.dev",
  "_commit": {
    "id": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
    "author": "GitHub Action <action@github.com>",
    "committer": "GitHub Action <action@github.com>",
    "message": "Add bunsen to CRANhaven, because archived on 2026-09-27 11:02:00 +0000\n",
    "time": 1790506920
  },
  "_maintainer": {
    "name": "Xinlei Deng",
    "email": "xinlei.deng@novartis.com",
    "orcid": "0000-0001-8129-6007"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "boot",
      "role": "Imports"
    },
    {
      "package": "clustermq",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cranhaven",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-39",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "archived",
    "packages",
    "r-universe",
    "cpp"
  ],
  "_stars": 5,
  "_contributors": [
    {
      "user": "henrikbengtsson",
      "count": 183,
      "uuid": 1616850
    }
  ],
  "_userbio": {
    "uuid": 161993010,
    "type": "organization",
    "name": "cranhaven",
    "followers": 3,
    "description": "CRANhaven - Repository for Recently Archived CRAN Packages"
  },
  "_downloads": {
    "count": 413,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bunsen"
  },
  "_devurl": "https://github.com/openpharma/bunsen",
  "_pkgdown": "https://openpharma.github.io/bunsen/",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bunsen.html",
    "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"
  ],
  "_homeurl": "https://github.com/openpharma/bunsen",
  "_realowner": "openpharma",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2025-05-29"
    },
    {
      "version": "0.1.1",
      "date": "2026-09-08"
    }
  ],
  "_exports": [
    "calculate_statistics",
    "calculate_trt_effect",
    "clmqControl",
    "firstZeroIndex",
    "get_marginal_effect",
    "get_point_estimate",
    "get_rmst_estimate",
    "get_variance_estimation",
    "rbinom_matrix_vec",
    "rmst_delta",
    "rmst_point_estimate",
    "rmst_unadjust",
    "simulate_counterfactuals"
  ],
  "_datasets": [
    {
      "name": "oak",
      "title": "Oak trial data",
      "object": "oak",
      "class": [
        "data.frame"
      ],
      "fields": [
        "trt",
        "btmb",
        "pdl1",
        "OS",
        "os.status"
      ],
      "rows": 578,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calculate_statistics",
      "title": "Estimate the marginal causal survival curves using potential outcome framework",
      "topics": [
        "calculate_statistics"
      ]
    },
    {
      "page": "calculate_trt_effect",
      "title": "Calculate the marginal treatment effect using counterfactual simulations",
      "topics": [
        "calculate_trt_effect"
      ]
    },
    {
      "page": "clmqControl",
      "title": "Control of marginal HR estimation via clustermq",
      "topics": [
        "clmqControl"
      ]
    },
    {
      "page": "firstZeroIndex",
      "title": "First zero index for each column of a matrix",
      "topics": [
        "firstZeroIndex"
      ]
    },
    {
      "page": "get_marginal_effect",
      "title": "Calculate the marginal treatment effects for hazard ratio (HR) adjusting covariates in clinical trials",
      "topics": [
        "get_marginal_effect"
      ]
    },
    {
      "page": "get_point_estimate",
      "title": "Calculate the marginal treatment effects (only the point estimate) for hazard ratio (HR) adjusting covariates in clinical trials",
      "topics": [
        "get_point_estimate"
      ]
    },
    {
      "page": "get_rmst_estimate",
      "title": "Calculate the marginal restricted mean survival time (RMST) when adjusting covariates in clinical trials",
      "topics": [
        "get_rmst_estimate"
      ]
    },
    {
      "page": "get_variance_estimation",
      "title": "Calculate the variance (SE) of the marginal treatment effects (hazard ratio) adjusting covariates in clinical trials",
      "topics": [
        "get_variance_estimation"
      ]
    },
    {
      "page": "oak",
      "title": "Oak trial data",
      "topics": [
        "oak"
      ]
    },
    {
      "page": "rbinom_matrix_vec",
      "title": "Generate a matrix of binomial random values",
      "topics": [
        "rbinom_matrix_vec"
      ]
    },
    {
      "page": "rmst_delta",
      "title": "Calculate the variance of the marginal restricted mean survival time (RMST) when adjusting covariates using the delta method",
      "topics": [
        "rmst_delta"
      ]
    },
    {
      "page": "rmst_point_estimate",
      "title": "Calculate the point estimate of the marginal restricted mean survival time (RMST) when adjusting covariates in clinical trials",
      "topics": [
        "rmst_point_estimate"
      ]
    },
    {
      "page": "rmst_unadjust",
      "title": "Calculate the unadjusted restricted mean survival time (RMST)",
      "topics": [
        "rmst_unadjust"
      ]
    },
    {
      "page": "simulate_counterfactuals",
      "title": "Calculate the potential outcomes using marginal survival causual curves",
      "topics": [
        "simulate_counterfactuals"
      ]
    }
  ],
  "_readme": "https://github.com/cranhaven/cranhaven.r-universe.dev/raw/package/bunsen/bunsen/README.md",
  "_rundeps": [
    "boot",
    "cli",
    "clustermq",
    "codetools",
    "crayon",
    "globals",
    "glue",
    "hms",
    "lattice",
    "lifecycle",
    "Matrix",
    "pkgconfig",
    "prettyunits",
    "progress",
    "R6",
    "Rcpp",
    "rlang",
    "survival",
    "vctrs"
  ],
  "_sysdeps": [
    {
      "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": 2.3979400086720375,
  "_indexed": false,
  "_nocasepkg": "bunsen",
  "_universes": [
    "cranhaven"
  ],
  "_indexurl": "https://openpharma.r-universe.dev/bunsen",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-27T18:43:08.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/24e0f4343c444f65ed004536bc8fe60917bebf3bbf212bab2a7e002e83b8a17c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-27T18:43:04.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/36acd525a140054d5c4c10dd3624b79e231800183f64f46917237c86992fbb82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-27T18:42:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/4555ceae3af719cacd95d26397569c690b22ef7c37c7128f1f9f5528b00660f9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-09-27T18:43:01.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/e6c998b7ee076211d4d1b04b83b5c24025dcabc0915e9c3d089b594d16d51473",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-27T18:44:51.000Z",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/50b43b96dc8267d0eb1c7c29a33f9ce3cb4b062a904cb0da5141edca9ebfbc0a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-27T18:46:24.000Z",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/a57a9f91f8858c8b71f9a2a5b2709795c2e6afa913587b1e4b9a4fc16707884a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-27T18:57:03.000Z",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/be6f588cbdc99319be3900a3ff18a37d09d19cef6b7e9628f981848a3bd5d7e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-09-27T18:45:52.000Z",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/00671b59b2df3edc32d3e8bee7810226ab516dd28bb49053f4724ba7b747f013",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-09-27T18:42:59.000Z",
      "arch": "emscripten",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/8870da6dd132552d7d913f5784310ac43eba704e87bd76520f8da3e2ffdcf799",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-27T18:44:01.000Z",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/fc9ad469af666f5b32d46e32cacd3223ffd4d4e5a7f4b6e3edb8ecea2a6b63ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-27T18:41:57.000Z",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/634bc5d3159c991d988097e23a3255079dac54973974e2b7d2ae62c5ce0dd1f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-27T18:42:00.000Z",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/11285df34d4b54675268d78f02a39ade88740070406d517d71054f3c7b5ba141",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-27T18:45:25.000Z",
      "arch": "aarch64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/34a73dc7402df74e0aaeb04228c029d0f29289498642445ae7b4d00f22c08f67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-09-27T18:42:13.000Z",
      "arch": "x86_64",
      "commit": "f85d6947bb5d6a15b5fc946cc710fcf03677c0ec",
      "fileid": "https://r2.ropensci.org/4002a50176e04afc93d6dbaff4d83ae5873f44a6bf4a62798df5a832220e7938",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cranhaven/actions/runs/36341332198"
    }
  ]
}