{
  "_id": "6ac227ee773a0037682c2c8f",
  "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-10-04 10:12:18 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/8aa9401bc3db042f085a084e93441efb8bd6de15b4358065b0ae33dab170a28a",
  "_filesize": 252707,
  "_sha256": "8aa9401bc3db042f085a084e93441efb8bd6de15b4358065b0ae33dab170a28a",
  "_expires": "2027-01-12T10:18:19.000Z",
  "_created": "2026-10-04T10:12:18.000Z",
  "_published": "2026-10-04T10:18:22.074Z",
  "_jobs": [
    {
      "job": 111413834248,
      "time": 132,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300368045"
    },
    {
      "job": 111413834226,
      "time": 132,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300590791"
    },
    {
      "job": 111413834193,
      "time": 103,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299979342"
    },
    {
      "job": 111413834246,
      "time": 125,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300074107"
    },
    {
      "job": 111413834235,
      "time": 124,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300935172"
    },
    {
      "job": 111413834247,
      "time": 172,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300243832"
    },
    {
      "job": 111413834224,
      "time": 109,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300034110"
    },
    {
      "job": 111413834251,
      "time": 313,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300975231"
    },
    {
      "job": 111413325111,
      "time": 179,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11299734912"
    },
    {
      "job": 111413834117,
      "time": 88,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11299969291"
    },
    {
      "job": 111413834229,
      "time": 216,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300960132"
    },
    {
      "job": 111413834218,
      "time": 145,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11300318407"
    },
    {
      "job": 111413834343,
      "time": 108,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11300362987"
    },
    {
      "job": 111413834306,
      "time": 194,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300655791"
    },
    {
      "job": 111413834249,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11300426278"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807",
  "_status": "success",
  "_upstream": "https://github.com/openpharma/bunsen",
  "_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
  },
  "_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": "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": 267,
    "description": "Further precompetitive collaboration in life sciences"
  },
  "_downloads": {
    "count": 363,
    "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"
  ],
  "_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": 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-10-04T10:14:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/7772056006dd44be7ae4d0be0de98453ade85672ea5d6a8240950af6054109ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:24.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/07dce23c87d4593b94c6add2575c2e6ef7653fc759aaa13e838af9a4e30a9d93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:03.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/85156668563a8084d9afd90ec3379d3f8290b98417598a3d458aff7c8d58bc8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:13.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/d0b10aca6ea3c7d4b897189725a02d6dc73ea1b1a23b14d137fee56b9a2e148f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:24.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/dc57347b7136441547cdcbce4b2c9886645ab2fa61ea92242dbcb7974e63e9b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:42.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/f593aa0e92dd685dab6f426890735ba8ffbac6ab3d94c928084937e46df45ba7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:01.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/bf33be919ca7f522f4bb3f1f5267cb5ddf1f1194b2ab79a0a7a411c1d754bc13",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-04T10:16:14.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/15f9f5e9d2b66c6d352fa0806670f9c91f46a976390a8c66f37b1eb4d1b6479a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-04T10:14:09.000Z",
      "arch": "emscripten",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/f6d906f63c5cbdaa96c5fc90abe22e8ab63f3106274d522bb7120a3a3fae3c73",
      "status": "success",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-04T10:15:33.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/f427bbf8b6640de24c6301715522b4901887943c577c8c67b3217bebbcc75e9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-04T10:13:31.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/781ccc370c99d1ea15e850107e3093daf370af2bdf57d0ddfe8579ec20846208",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-04T10:13:37.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/b14a4a2f9ca27f027d0f555d595975093e43da6e469351938d191ff5b2a226ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-04T10:15:18.000Z",
      "arch": "aarch64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/a3dbb2d4c979141cb6430186dd80a86682ca3f459b5a75884394a3142a2ecd94",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-04T10:13:31.000Z",
      "arch": "x86_64",
      "commit": "07ba227bd24b3c623a28b5c3c2515975d08aec4f",
      "fileid": "https://r2.ropensci.org/3409b82d64453f214a7c538e5e6fba410e2b2e8dcb4aea9c51d513b4bd9c0fc4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/openpharma/actions/runs/37194442807"
    }
  ]
}