{
  "_id": "6ae9cc6b2e87f76f20ad0b02",
  "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",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libzmq3-dev",
  "Repository": "https://openpharma.r-universe.dev",
  "Date/Publication": "2026-09-03 13:50:34 UTC",
  "RemoteUrl": "https://github.com/openpharma/bunsen",
  "RemoteRef": "HEAD",
  "RemoteSha": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-03 10:58:05 UTC",
    "User": "root"
  },
  "Author": "Xinlei Deng [cre, aut] (ORCID: <https://orcid.org/0000-0001-8129-6007>),\nMark Baillie [aut] (ORCID: <https://orcid.org/0000-0002-5618-0667>),\nCraig Wang [aut] (ORCID: <https://orcid.org/0000-0003-1804-2463>),\nDominic Magirr [aut],\nAlex Przybylski [aut]",
  "_user": "openpharma",
  "_type": "src",
  "_file": "bunsen_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/bdb3c6dfbb8c70364ea09beadc0fb2d9fe4b113004858da87bf2737a0f05c020",
  "_filesize": 251353,
  "_sha256": "bdb3c6dfbb8c70364ea09beadc0fb2d9fe4b113004858da87bf2737a0f05c020",
  "_expires": "2027-02-11T11:58:34.000Z",
  "_created": "2026-11-03T10:58:05.000Z",
  "_published": "2026-11-03T11:58:35.703Z",
  "_upstream": "https://github.com/openpharma/bunsen",
  "_status": "success",
  "_maintainer": {
    "name": "Xinlei Deng",
    "email": "xinlei.deng@novartis.com",
    "orcid": "0000-0001-8129-6007"
  },
  "_jobs": [
    {
      "job": 125875542758,
      "time": 126,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13225071548"
    },
    {
      "job": 125875542803,
      "time": 134,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13225600150"
    },
    {
      "job": 125875542787,
      "time": 121,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13225545594"
    },
    {
      "job": 125875542985,
      "time": 115,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13224607980"
    },
    {
      "job": 125875542796,
      "time": 129,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13227927672"
    },
    {
      "job": 125875542816,
      "time": 234,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13223774835"
    },
    {
      "job": 125875543026,
      "time": 140,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13228587062"
    },
    {
      "job": 125875542777,
      "time": 216,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13224164763"
    },
    {
      "job": 125874303915,
      "time": 159,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13225016496"
    },
    {
      "job": 125875542897,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13223989001"
    },
    {
      "job": 125875542770,
      "time": 332,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13225181758"
    },
    {
      "job": 125875542819,
      "time": 147,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13224632327"
    },
    {
      "job": 125875543311,
      "time": 114,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13225595446"
    },
    {
      "job": 125875542977,
      "time": 354,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13224523788"
    },
    {
      "job": 125875543021,
      "time": 88,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13223853964"
    }
  ],
  "_buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195",
  "_commit": {
    "id": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
    "author": "Xinlei Deng <91519757+xinleideng@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #11 from openpharma/master\n\nupdate version number",
    "time": 1788443434
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "openpharma",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-36",
      "n": 3
    }
  ],
  "_tags": [],
  "_stars": 6,
  "_contributors": [
    {
      "user": "xinleideng",
      "count": 10,
      "uuid": 91519757
    },
    {
      "user": "baillma3",
      "count": 2,
      "uuid": 22885582
    },
    {
      "user": "przybal2",
      "count": 2,
      "uuid": 137296503
    },
    {
      "user": "craigwang247",
      "count": 1,
      "uuid": 159240930
    },
    {
      "user": "bailliem",
      "count": 1,
      "uuid": 19621679
    }
  ],
  "_userbio": {
    "uuid": 8436743,
    "type": "organization",
    "name": "openpharma",
    "followers": 270,
    "description": "Further precompetitive collaboration in life sciences"
  },
  "_downloads": {
    "count": 37,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bunsen"
  },
  "_devurl": "https://github.com/openpharma/bunsen",
  "_pkgdown": "https://openpharma.github.io/bunsen/",
  "_searchresults": 3,
  "_topics": [
    "cpp"
  ],
  "_abi": {
    "exports": [],
    "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/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": true,
  "_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/openpharma/bunsen/raw/HEAD/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": 4.079181246047625,
  "_indexed": true,
  "_nocasepkg": "bunsen",
  "_universes": [
    "openpharma"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-03T11:00:11.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/9fdc984bf5758441dbbd80dc3221916626fc8fa942aac8799f212f65fd6276a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-03T11:00:06.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/c1839cb4120f9cdd32c40babdd938da63011f0881b4655b4a03e77ea809a45e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-03T11:00:11.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/8d024099735860ea636a0fc6829a3766aa894e94b7501ac3038b7ea6e472d03f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-11-03T11:00:01.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/de4e6e75d16c48f71ceff57c34089834dceeabd1fd1b9a217da2a246c98e9978",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-03T11:55:32.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/93a1b98d2d940f75c7b0b9fcde5b9e416bb7606477158541be375b8932deb298",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-03T11:01:34.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/dd07eddce343da749005f1224217d55fe1a69b1bbbce7be9b8ce5e6b8cf42757",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-03T11:57:29.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/a6de155b0d49b48bcf6b7393eb3f63db5474c41555ea5cdd291f7786155ebbe2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-11-03T11:01:30.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/7036273c41f95b4f62c97c778d904c9d404e9266466c22a7b83531508315e4c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-11-03T11:00:06.000Z",
      "arch": "emscripten",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/ae478b487cfc294e9243858d55b9b4512149895b2844f5d708ef9de3aa845a61",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-03T11:02:37.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/215a31bb34ff426f8cb7cf1fa0086cb7790701e9afb364ca2cf7e3e5650afeb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-03T10:59:21.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/014d02f6bd5d255d266f47622ae251c936e0cc605176cdbeb0ab6d29e66fd9f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-03T10:59:27.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/6ed56527d401bc3731b054ac7fb392e8402656f0acb96150d4d42850cba5976f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-03T11:03:19.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/d66eb2bd485bde22417da69715e1410b2d3e64fb9b320401b8fd422b1aedfd64",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-11-03T10:59:19.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/b46bc79940b85e74797dc020ee5accb12d160f1bb1b7b034b0a494dddc048c78",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/41623282195"
    }
  ]
}